mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-06 00:45:40 +00:00
Update location on checkin if one is given
This commit is contained in:
@ -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')));
|
||||
|
||||
Reference in New Issue
Block a user