From ac8a7d0bc9d3295afd1af101935f1333a87e7eaa Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 3 Mar 2022 20:29:48 -0800 Subject: [PATCH] Made notes field fillable and searchable Signed-off-by: snipe --- app/Models/Accessory.php | 5 +++-- app/Models/Component.php | 3 ++- app/Models/Consumable.php | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/Models/Accessory.php b/app/Models/Accessory.php index 1abac4f68c..31735d63e1 100755 --- a/app/Models/Accessory.php +++ b/app/Models/Accessory.php @@ -35,7 +35,7 @@ class Accessory extends SnipeModel * * @var array */ - protected $searchableAttributes = ['name', 'model_number', 'order_number', 'purchase_date']; + protected $searchableAttributes = ['name', 'model_number', 'order_number', 'purchase_date', 'notes']; /** * The relations and their attributes that should be included when searching the model. @@ -92,7 +92,8 @@ class Accessory extends SnipeModel 'image', 'qty', 'min_amt', - 'requestable' + 'requestable', + 'notes', ]; diff --git a/app/Models/Component.php b/app/Models/Component.php index 3e027cc4ee..3e240078a9 100644 --- a/app/Models/Component.php +++ b/app/Models/Component.php @@ -60,6 +60,7 @@ class Component extends SnipeModel 'order_number', 'qty', 'serial', + 'notes', ]; use Searchable; @@ -69,7 +70,7 @@ class Component extends SnipeModel * * @var array */ - protected $searchableAttributes = ['name', 'order_number', 'serial', 'purchase_cost', 'purchase_date']; + protected $searchableAttributes = ['name', 'order_number', 'serial', 'purchase_cost', 'purchase_date', 'notes']; /** * The relations and their attributes that should be included when searching the model. diff --git a/app/Models/Consumable.php b/app/Models/Consumable.php index a2fcaed839..276ee97059 100644 --- a/app/Models/Consumable.php +++ b/app/Models/Consumable.php @@ -69,7 +69,8 @@ class Consumable extends SnipeModel 'purchase_date', 'qty', 'min_amt', - 'requestable' + 'requestable', + 'notes', ]; use Searchable; @@ -79,7 +80,7 @@ class Consumable extends SnipeModel * * @var array */ - protected $searchableAttributes = ['name', 'order_number', 'purchase_cost', 'purchase_date', 'item_no', 'model_number']; + protected $searchableAttributes = ['name', 'order_number', 'purchase_cost', 'purchase_date', 'item_no', 'model_number', 'notes']; /** * The relations and their attributes that should be included when searching the model.