mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Made notes field fillable and searchable
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
6fca8350f9
commit
ac8a7d0bc9
|
@ -35,7 +35,7 @@ class Accessory extends SnipeModel
|
||||||
*
|
*
|
||||||
* @var array
|
* @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.
|
* The relations and their attributes that should be included when searching the model.
|
||||||
|
@ -92,7 +92,8 @@ class Accessory extends SnipeModel
|
||||||
'image',
|
'image',
|
||||||
'qty',
|
'qty',
|
||||||
'min_amt',
|
'min_amt',
|
||||||
'requestable'
|
'requestable',
|
||||||
|
'notes',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,7 @@ class Component extends SnipeModel
|
||||||
'order_number',
|
'order_number',
|
||||||
'qty',
|
'qty',
|
||||||
'serial',
|
'serial',
|
||||||
|
'notes',
|
||||||
];
|
];
|
||||||
|
|
||||||
use Searchable;
|
use Searchable;
|
||||||
|
@ -69,7 +70,7 @@ class Component extends SnipeModel
|
||||||
*
|
*
|
||||||
* @var array
|
* @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.
|
* The relations and their attributes that should be included when searching the model.
|
||||||
|
|
|
@ -69,7 +69,8 @@ class Consumable extends SnipeModel
|
||||||
'purchase_date',
|
'purchase_date',
|
||||||
'qty',
|
'qty',
|
||||||
'min_amt',
|
'min_amt',
|
||||||
'requestable'
|
'requestable',
|
||||||
|
'notes',
|
||||||
];
|
];
|
||||||
|
|
||||||
use Searchable;
|
use Searchable;
|
||||||
|
@ -79,7 +80,7 @@ class Consumable extends SnipeModel
|
||||||
*
|
*
|
||||||
* @var array
|
* @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.
|
* The relations and their attributes that should be included when searching the model.
|
||||||
|
|
Loading…
Reference in a new issue