mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixed #7100 - Check if $user isset on checkin
This commit is contained in:
parent
2c64739e8f
commit
74a2c29bc2
|
@ -93,7 +93,7 @@ class AssetCheckinController extends Controller
|
||||||
$data['model_name'] = $asset->model->name;
|
$data['model_name'] = $asset->model->name;
|
||||||
$data['model_number'] = $asset->model->model_number;
|
$data['model_number'] = $asset->model->model_number;
|
||||||
|
|
||||||
if (($user) && ($backto =='user')) {
|
if ((isset($user)) && ($backto =='user')) {
|
||||||
return redirect()->route("users.show", $user->id)->with('success', trans('admin/hardware/message.checkin.success'));
|
return redirect()->route("users.show", $user->id)->with('success', trans('admin/hardware/message.checkin.success'));
|
||||||
}
|
}
|
||||||
return redirect()->route("hardware.index")->with('success', trans('admin/hardware/message.checkin.success'));
|
return redirect()->route("hardware.index")->with('success', trans('admin/hardware/message.checkin.success'));
|
||||||
|
|
Loading…
Reference in a new issue