mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Update location on checkin if one is given
This commit is contained in:
parent
0f5e0dcd4f
commit
bd48ae96c2
|
@ -539,6 +539,11 @@ class AssetsController extends Controller
|
||||||
if (Input::has('status_id')) {
|
if (Input::has('status_id')) {
|
||||||
$asset->status_id = e(Input::get('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?
|
// Was the asset updated?
|
||||||
if ($asset->save()) {
|
if ($asset->save()) {
|
||||||
$logaction = $asset->logCheckin($target, e(request('note')));
|
$logaction = $asset->logCheckin($target, e(request('note')));
|
||||||
|
|
Loading…
Reference in a new issue