mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Fixed varname issue on old image delete for manufacturers
This commit is contained in:
parent
feb2f5b076
commit
4cdcbc97ee
|
@ -142,7 +142,7 @@ class ManufacturersController extends Controller
|
|||
$image = $request->file('image');
|
||||
$file_name = str_slug($image->getClientOriginalName()).".".$image->getClientOriginalExtension();
|
||||
$path = public_path('uploads/manufacturers/'.$file_name);
|
||||
$old_image = $path.$model->image;
|
||||
$old_image = $path.$manufacturer->image;
|
||||
|
||||
try {
|
||||
unlink($old_image);
|
||||
|
|
Loading…
Reference in a new issue