Added parameters

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-26 12:45:06 +01:00
parent 759ab78f80
commit c6e709cd36

View file

@ -1530,11 +1530,11 @@ class Helper
if ($redirect_option == 'target') {
switch ($checkout_to_type) {
case 'user':
return route('users.show', $request->assigned_user);
return route('users.show', ['user' => $request->assigned_user]);
case 'location':
return route('locations.show', $request->assigned_location);
return route('locations.show', ['location' => $request->assigned_location]);
case 'asset':
return route('hardware.show', $request->assigned_asset);
return route('hardware.show', ['hardware' => $request->assigned_asset]);
}
}
return redirect()->back()->with('error', trans('admin/hardware/message.checkout.error'));