From 3b41aa52c88da47e2a4734efa43fc9a21f551d91 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 5 Mar 2019 23:20:16 -0800 Subject: [PATCH] Added ability to search consumables by item number 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.