Fixed target variable

This commit is contained in:
snipe 2017-03-11 05:17:02 -08:00
parent 793d9e9250
commit a680541fe8

View file

@ -225,7 +225,7 @@ class AssetsController extends Controller
} elseif(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')));
}
// Redirect to the asset listing page