From f95502ae35eb685171369cbe6d618e1488d3a14c Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 3 Nov 2017 15:04:21 -0700 Subject: [PATCH] Fixed search by model on adsvanced search for assets --- app/Models/Asset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 578a776371..df0905ba52 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -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 . '%'); }