mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Fixes #2341
This commit is contained in:
parent
214a7d548d
commit
f53c5706f6
|
@ -624,7 +624,12 @@ class AssetsController extends Controller
|
|||
// Was the asset updated?
|
||||
if ($asset->save()) {
|
||||
|
||||
$checkout_at = e(Input::get('checkin_at'));
|
||||
if ($request->input('checkout_at')== Carbon::now()->format('Y-m-d')) {
|
||||
$checkout_at = Carbon::now();
|
||||
} else {
|
||||
$checkout_at = Carbon::now()->format('Y-m-d h:i:s');
|
||||
}
|
||||
//$checkout_at = e(Input::get('checkin_at'));
|
||||
$logaction = $asset->createLogRecord('checkin', $asset, $admin, $user, null, e(Input::get('note')), $checkout_at);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue