diff --git a/app/Models/Asset.php b/app/Models/Asset.php index cb5aee97cd..29dd2d6cfe 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -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 . '%'); }