mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Fixed #4663 - duplicate manufacturer name in selectlist
This commit is contained in:
parent
d2e2c1c05f
commit
c3a44f25fd
|
@ -200,7 +200,7 @@ class AssetModelsController extends Controller
|
|||
$assetmodels = $assetmodels->OrderCategory('ASC')->OrderManufacturer('ASC')->orderby('models.name', 'asc')->orderby('models.model_number', 'asc')->paginate(50);
|
||||
|
||||
foreach ($assetmodels as $assetmodel) {
|
||||
$assetmodel->use_text = (($assetmodel->category) ? e($assetmodel->category->name) : '').': '.(($assetmodel->manufacturer) ? e($assetmodel->manufacturer->name) : '').' '.$assetmodel->present()->modelName;
|
||||
$assetmodel->use_text = (($assetmodel->category) ? e($assetmodel->category->name) : '').': '.$assetmodel->present()->modelName;
|
||||
$assetmodel->use_image = ($assetmodel->image) ? url('/').'/uploads/models/'.$assetmodel->image : null;
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ class AssetModelPresenter extends Presenter
|
|||
{
|
||||
$name = '';
|
||||
if ($this->model->manufacturer) {
|
||||
$name .= $this->model->manufacturer->name;
|
||||
$name .= $this->model->manufacturer->name.' ';
|
||||
}
|
||||
$name .= $this->name;
|
||||
|
||||
|
|
Loading…
Reference in a new issue