Fixes filtering on status label

This commit is contained in:
snipe 2017-11-02 13:01:09 -07:00
parent 513a1b1e3b
commit 87affa40ed

View file

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