A free open source IT asset/license management system
Added ability to search consumables by item number
snipe3b41aa52c88d
diff --git a/app/Models/Consumable.php b/app/Models/Consumable.phpindex 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.