Fixes older route reference in consumables

This commit is contained in:
snipe 2017-10-19 02:07:31 -07:00
parent 9c06912efd
commit 4d3d19ca2b

View file

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