Added #16239 - make city searchabke in users
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
fa45ca1453
commit
e5c6e294ec
1 changed files with 12 additions and 7 deletions
|
@ -115,16 +115,21 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $searchableAttributes = [
|
protected $searchableAttributes = [
|
||||||
'first_name',
|
'address',
|
||||||
'last_name',
|
'city',
|
||||||
|
'country',
|
||||||
'email',
|
'email',
|
||||||
'username',
|
'employee_num',
|
||||||
|
'first_name',
|
||||||
|
'jobtitle',
|
||||||
|
'last_name',
|
||||||
|
'locale',
|
||||||
'notes',
|
'notes',
|
||||||
'phone',
|
'phone',
|
||||||
'jobtitle',
|
'state',
|
||||||
'employee_num',
|
'username',
|
||||||
'website',
|
'website',
|
||||||
'locale',
|
'zip',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -133,7 +138,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $searchableRelations = [
|
protected $searchableRelations = [
|
||||||
'userloc' => ['name'],
|
'userloc' => ['name', 'address', 'address2', 'city', 'state', 'zip'],
|
||||||
'department' => ['name'],
|
'department' => ['name'],
|
||||||
'groups' => ['name'],
|
'groups' => ['name'],
|
||||||
'company' => ['name'],
|
'company' => ['name'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue