Fixed assetmodels selectlist

This commit is contained in:
snipe 2020-08-26 02:32:39 -07:00
parent f385f3e928
commit db385b5f6b
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -252,7 +252,7 @@ class AssetModelsController extends Controller
$assetmodel->use_text .= ' (#'.e($assetmodel->model_number).')';
}
$assetmodel->use_image = ($settings->modellistCheckedValue('image') && ($assetmodel->image)) ? Storage::disk('public')->url('assetmodels/'.e($assetmodel->image)) : null;
$assetmodel->use_image = ($settings->modellistCheckedValue('image') && ($assetmodel->image)) ? Storage::disk('public')->url('models/'.e($assetmodel->image)) : null;
}
return (new SelectlistTransformer)->transformSelectlist($assetmodels);