From df8f6a8d2b4bf2f12abcaee569632a3189542878 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 11 Aug 2023 09:40:49 +0100 Subject: [PATCH] Correctly call the route for accessory index Signed-off-by: snipe --- app/Http/Controllers/Accessories/AccessoriesController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Accessories/AccessoriesController.php b/app/Http/Controllers/Accessories/AccessoriesController.php index 111cbb3c8b..8221868f73 100755 --- a/app/Http/Controllers/Accessories/AccessoriesController.php +++ b/app/Http/Controllers/Accessories/AccessoriesController.php @@ -131,7 +131,8 @@ class AccessoriesController extends Controller // Check if the asset exists if (is_null($accessory_to_clone = Accessory::find($accessoryId))) { // Redirect to the asset management page - return redirect()->route('accessory.index')->with('error', trans('admin/accessories/message.does_not_exist')); + return redirect()->route('accessories.index') + ->with('error', trans('admin/accessories/message.does_not_exist', ['id' => $accessoryId])); } $accessory = clone $accessory_to_clone;