From 75bf8f3d58ac8e8343b3154845eff14228f89f83 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Date: Fri, 17 Jan 2020 18:12:24 -0600 Subject: [PATCH] Remove not existent variable 'id' in the redirect causing [ch10602] (#7732) --- app/Http/Controllers/ConsumablesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ConsumablesController.php b/app/Http/Controllers/ConsumablesController.php index afe36a6e4a..f62d29fae1 100644 --- a/app/Http/Controllers/ConsumablesController.php +++ b/app/Http/Controllers/ConsumablesController.php @@ -204,7 +204,7 @@ class ConsumablesController extends Controller if (isset($consumable->id)) { return view('consumables/view', compact('consumable')); } - return redirect()->route('consumables.index')->with('error', trans('admin/consumables/message.does_not_exist', compact('id'))); + return redirect()->route('consumables.index')->with('error', trans('admin/consumables/message.does_not_exist')); } /**