Merge pull request #13797 from Godmartinz/employeeid_search_add

adds employee number as a searchable field to the asset table
This commit is contained in:
snipe 2023-10-25 21:04:54 +01:00 committed by GitHub
commit d93e399295
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -949,6 +949,7 @@ class Asset extends Depreciable
->orWhere('assets_users.first_name', 'LIKE', '%'.$term.'%')
->orWhere('assets_users.last_name', 'LIKE', '%'.$term.'%')
->orWhere('assets_users.username', 'LIKE', '%'.$term.'%')
->orWhere('assets_users.employee_num', 'LIKE', '%'.$term.'%')
->orWhereMultipleColumns([
'assets_users.first_name',
'assets_users.last_name',