Update location on checkin if one is given

This commit is contained in:
snipe 2017-10-28 07:28:35 -07:00
parent 0f5e0dcd4f
commit bd48ae96c2

View file

@ -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')));