From bd48ae96c27b5f7cdc04d93dd2cd2a394b95a17f Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 28 Oct 2017 07:28:35 -0700 Subject: [PATCH] Update location on checkin if one is given --- app/Http/Controllers/AssetsController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.php index a582919813..8ffb1535f6 100755 --- a/app/Http/Controllers/AssetsController.php +++ b/app/Http/Controllers/AssetsController.php @@ -539,6 +539,11 @@ class AssetsController extends Controller if (Input::has('status_id')) { $asset->status_id = e(Input::get('status_id')); } + + if (Input::has('location_id')) { + $asset->location_id = e(Input::get('location_id')); + } + // Was the asset updated? if ($asset->save()) { $logaction = $asset->logCheckin($target, e(request('note')));