Merge pull request #8078 from dmeltzer/wrong-id
Fix incorrectly named parameter.
This commit is contained in:
commit
dee1f5ec35
1 changed files with 3 additions and 3 deletions
|
@ -96,7 +96,7 @@ class ManufacturersController extends Controller
|
|||
$this->authorize('update', Manufacturer::class);
|
||||
|
||||
// Check if the manufacturer exists
|
||||
if (!$item = Manufacturer::find($id)) {
|
||||
if (!$item = Manufacturer::find($manufacturerId)) {
|
||||
return redirect()->route('manufacturers.index')->with('error', trans('admin/manufacturers/message.does_not_exist'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue