Merge pull request #14317 from snipe/fixes/make_website_searchable_on_users_list

Made website searchable on users table
This commit is contained in:
snipe 2024-02-22 17:01:58 +00:00 committed by GitHub
commit e12d2b2a42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -123,6 +123,10 @@ class UsersController extends Controller
$users = $users->where('users.country', '=', $request->input('country'));
}
if ($request->filled('website')) {
$users = $users->where('users.website', '=', $request->input('website'));
}
if ($request->filled('zip')) {
$users = $users->where('users.zip', '=', $request->input('zip'));
}

View file

@ -67,6 +67,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
'gravatar',
'vip',
'autoassign_licenses',
'website',
];
protected $casts = [
@ -120,6 +121,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
'phone',
'jobtitle',
'employee_num',
'website',
];
/**