Skip to content

A free open source IT asset/license management system

Made notes field fillable and searchable

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