Added #16239 - make city searchabke in users

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-04-24 12:16:41 +01:00
parent fa45ca1453
commit e5c6e294ec

View file

@ -115,16 +115,21 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
* @var array
*/
protected $searchableAttributes = [
'first_name',
'last_name',
'address',
'city',
'country',
'email',
'username',
'employee_num',
'first_name',
'jobtitle',
'last_name',
'locale',
'notes',
'phone',
'jobtitle',
'employee_num',
'state',
'username',
'website',
'locale',
'zip',
];
/**
@ -133,7 +138,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
* @var array
*/
protected $searchableRelations = [
'userloc' => ['name'],
'userloc' => ['name', 'address', 'address2', 'city', 'state', 'zip'],
'department' => ['name'],
'groups' => ['name'],
'company' => ['name'],