Made notes field fillable and searchable

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-03-03 20:29:48 -08:00
parent 6fca8350f9
commit ac8a7d0bc9
3 changed files with 8 additions and 5 deletions

View file

@ -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',
];

View file

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

View file

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