mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fix incorrectly named parameter.
This commit is contained in:
parent
3db4480bba
commit
ad1db2c640
|
@ -96,10 +96,10 @@ class ManufacturersController extends Controller
|
||||||
$this->authorize('update', Manufacturer::class);
|
$this->authorize('update', Manufacturer::class);
|
||||||
|
|
||||||
// Check if the manufacturer exists
|
// 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'));
|
return redirect()->route('manufacturers.index')->with('error', trans('admin/manufacturers/message.does_not_exist'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show the page
|
// Show the page
|
||||||
return view('manufacturers/edit', compact('item'));
|
return view('manufacturers/edit', compact('item'));
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ class ManufacturersController extends Controller
|
||||||
$manufacturer->support_url = $request->input('support_url');
|
$manufacturer->support_url = $request->input('support_url');
|
||||||
$manufacturer->support_phone = $request->input('support_phone');
|
$manufacturer->support_phone = $request->input('support_phone');
|
||||||
$manufacturer->support_email = $request->input('support_email');
|
$manufacturer->support_email = $request->input('support_email');
|
||||||
|
|
||||||
// Set the model's image property to null if the image is being deleted
|
// Set the model's image property to null if the image is being deleted
|
||||||
if ($request->input('image_delete') == 1) {
|
if ($request->input('image_delete') == 1) {
|
||||||
$manufacturer->image = null;
|
$manufacturer->image = null;
|
||||||
|
|
Loading…
Reference in a new issue