Fixed search by model on adsvanced search for assets

This commit is contained in:
snipe 2017-11-03 15:04:21 -07:00
parent b3b8ab493e
commit f95502ae35

View file

@ -935,7 +935,7 @@ class Asset extends Depreciable
}
}
if (($fieldname!='category') && ($fieldname!='status_label')) {
if (($fieldname!='category') && ($fieldname!='status_label') && ($fieldname!='model')) {
$query->orWhere('assets.'.$fieldname, 'LIKE', '%' . $search_val . '%');
}