Fix incorrectly named parameter.

This commit is contained in:
Daniel Meltzer 2020-05-23 10:26:56 -04:00
parent 3db4480bba
commit ad1db2c640
No known key found for this signature in database
GPG key ID: 91C5C7B09A5B1CA0

View file

@ -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'));
}