mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Use more correct route in redirect
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
08153d418f
commit
ef10f2e50e
|
@ -96,8 +96,8 @@ class ComponentCheckinController extends Controller
|
||||||
$asset = Asset::find($component_assets->asset_id);
|
$asset = Asset::find($component_assets->asset_id);
|
||||||
|
|
||||||
event(new CheckoutableCheckedIn($component, $asset, Auth::user(), $request->input('note'), Carbon::now()));
|
event(new CheckoutableCheckedIn($component, $asset, Auth::user(), $request->input('note'), Carbon::now()));
|
||||||
if($backto == 'asset'){
|
if ($backto == 'asset'){
|
||||||
return redirect()->route('hardware.view', $asset->id)->with('success',
|
return redirect()->route('hardware.show', $asset->id)->with('success',
|
||||||
trans('admin/components/message.checkin.success'));
|
trans('admin/components/message.checkin.success'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue