Added ability to search consumables by item number (#6785)

Fixes ch1086
This commit is contained in:
snipe 2019-03-05 23:21:22 -08:00 committed by GitHub
parent 28a450ea25
commit 58768e5aee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.