From 58768e5aee5838df2e6cc5c62261645a6430724b Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 5 Mar 2019 23:21:22 -0800 Subject: [PATCH] Added ability to search consumables by item number (#6785) Fixes ch1086 --- app/Models/Consumable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Consumable.php b/app/Models/Consumable.php index 55bfb8aae6..0a310d77b1 100644 --- a/app/Models/Consumable.php +++ b/app/Models/Consumable.php @@ -76,7 +76,7 @@ class Consumable extends SnipeModel * * @var array */ - protected $searchableAttributes = ['name', 'order_number', 'purchase_cost', 'purchase_date']; + protected $searchableAttributes = ['name', 'order_number', 'purchase_cost', 'purchase_date', 'item_no']; /** * The relations and their attributes that should be included when searching the model.