From 9e7f998df57295ea720d78d8ecc9903f0dc33cfe Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 22 Feb 2017 22:55:20 -0800 Subject: [PATCH] Add model_number to accessory search --- app/Models/Accessory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/Accessory.php b/app/Models/Accessory.php index e405d11c54..c3ff9f3a16 100755 --- a/app/Models/Accessory.php +++ b/app/Models/Accessory.php @@ -162,6 +162,7 @@ class Accessory extends SnipeModel $query->where('locations.name', 'LIKE', '%'.$search.'%'); }); })->orWhere('accessories.name', 'LIKE', '%'.$search.'%') + ->orWhere('accessories.model_number', 'LIKE', '%'.$search.'%') ->orWhere('accessories.order_number', 'LIKE', '%'.$search.'%') ->orWhere('accessories.purchase_cost', 'LIKE', '%'.$search.'%') ->orWhere('accessories.purchase_date', 'LIKE', '%'.$search.'%');