From ad1db2c640e5b5ca62444e7d646f45842074ef00 Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Sat, 23 May 2020 10:26:56 -0400 Subject: [PATCH] Fix incorrectly named parameter. --- app/Http/Controllers/ManufacturersController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/ManufacturersController.php b/app/Http/Controllers/ManufacturersController.php index dde37b090d..ba115051cf 100755 --- a/app/Http/Controllers/ManufacturersController.php +++ b/app/Http/Controllers/ManufacturersController.php @@ -96,10 +96,10 @@ 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')); } - + // Show the page return view('manufacturers/edit', compact('item')); } @@ -131,7 +131,7 @@ class ManufacturersController extends Controller $manufacturer->support_url = $request->input('support_url'); $manufacturer->support_phone = $request->input('support_phone'); $manufacturer->support_email = $request->input('support_email'); - + // Set the model's image property to null if the image is being deleted if ($request->input('image_delete') == 1) { $manufacturer->image = null;