Allow the user to filter by the entire user name

This commit is contained in:
Alex Tselegidis 2022-12-12 09:15:55 +01:00
parent 04c7517d0f
commit 0ee1f5cb0a
4 changed files with 4 additions and 0 deletions

View file

@ -544,6 +544,7 @@ class Admins_model extends EA_Model {
->group_start()
->like('first_name', $keyword)
->or_like('last_name', $keyword)
->or_like('CONCAT_WS(" ", first_name, last_name)', $keyword)
->or_like('email', $keyword)
->or_like('phone_number', $keyword)
->or_like('mobile_number', $keyword)

View file

@ -444,6 +444,7 @@ class Customers_model extends EA_Model {
->group_start()
->like('first_name', $keyword)
->or_like('last_name', $keyword)
->or_like('CONCAT_WS(" ", first_name, last_name)', $keyword)
->or_like('email', $keyword)
->or_like('phone_number', $keyword)
->or_like('mobile_number', $keyword)

View file

@ -735,6 +735,7 @@ class Providers_model extends EA_Model {
->group_start()
->like('first_name', $keyword)
->or_like('last_name', $keyword)
->or_like('CONCAT_WS(" ", first_name, last_name)', $keyword)
->or_like('email', $keyword)
->or_like('phone_number', $keyword)
->or_like('mobile_number', $keyword)

View file

@ -588,6 +588,7 @@ class Secretaries_model extends EA_Model {
->group_start()
->like('first_name', $keyword)
->or_like('last_name', $keyword)
->or_like('CONCAT_WS(" ", first_name, last_name)', $keyword)
->or_like('email', $keyword)
->or_like('phone_number', $keyword)
->or_like('mobile_number', $keyword)