Remove not existent variable 'id' in the redirect causing [ch10602] (#7732)

This commit is contained in:
Ivan Nieto 2020-01-17 18:12:24 -06:00 committed by snipe
parent 324da7c0c8
commit 75bf8f3d58

View file

@ -204,7 +204,7 @@ class ConsumablesController extends Controller
if (isset($consumable->id)) { if (isset($consumable->id)) {
return view('consumables/view', compact('consumable')); 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'));
} }
/** /**