Fixed sorting for filtered items by location

This commit is contained in:
snipe 2017-11-06 10:26:09 -08:00
parent bd524ff2f3
commit 4818e1b8ca

View file

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