Fixes older route reference in consumables
This commit is contained in:
parent
9c06912efd
commit
4d3d19ca2b
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,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')->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')));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue