mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixed advanced search on model number
(RB:347)
This commit is contained in:
parent
a0afa9f2e8
commit
276d2bc866
|
@ -1060,7 +1060,7 @@ class Asset extends Depreciable
|
|||
}
|
||||
}
|
||||
|
||||
if (($fieldname!='category') && ($fieldname!='location') && ($fieldname!='supplier')
|
||||
if (($fieldname!='category') && ($fieldname!='model_number') && ($fieldname!='location') && ($fieldname!='supplier')
|
||||
&& ($fieldname!='status_label') && ($fieldname!='model') && ($fieldname!='company') && ($fieldname!='manufacturer')) {
|
||||
$query->orWhere('assets.'.$fieldname, 'LIKE', '%' . $search_val . '%');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue