mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Fixed target variable
This commit is contained in:
parent
793d9e9250
commit
a680541fe8
|
@ -225,7 +225,7 @@ class AssetsController extends Controller
|
||||||
} elseif(request('assigned_location')) {
|
} elseif(request('assigned_location')) {
|
||||||
$target = Location::find(request('assigned_location'));
|
$target = Location::find(request('assigned_location'));
|
||||||
}
|
}
|
||||||
if ($target) {
|
if (isset($target)) {
|
||||||
$asset->checkOut($target, Auth::user(), date('Y-m-d H:i:s'), '', 'Checked out on asset creation', e(Input::get('name')));
|
$asset->checkOut($target, Auth::user(), date('Y-m-d H:i:s'), '', 'Checked out on asset creation', e(Input::get('name')));
|
||||||
}
|
}
|
||||||
// Redirect to the asset listing page
|
// Redirect to the asset listing page
|
||||||
|
|
Loading…
Reference in a new issue