forked from mirrors/easyappointments
Allow the user to filter by the entire user name
This commit is contained in:
parent
04c7517d0f
commit
0ee1f5cb0a
4 changed files with 4 additions and 0 deletions
|
@ -544,6 +544,7 @@ class Admins_model extends EA_Model {
|
||||||
->group_start()
|
->group_start()
|
||||||
->like('first_name', $keyword)
|
->like('first_name', $keyword)
|
||||||
->or_like('last_name', $keyword)
|
->or_like('last_name', $keyword)
|
||||||
|
->or_like('CONCAT_WS(" ", first_name, last_name)', $keyword)
|
||||||
->or_like('email', $keyword)
|
->or_like('email', $keyword)
|
||||||
->or_like('phone_number', $keyword)
|
->or_like('phone_number', $keyword)
|
||||||
->or_like('mobile_number', $keyword)
|
->or_like('mobile_number', $keyword)
|
||||||
|
|
|
@ -444,6 +444,7 @@ class Customers_model extends EA_Model {
|
||||||
->group_start()
|
->group_start()
|
||||||
->like('first_name', $keyword)
|
->like('first_name', $keyword)
|
||||||
->or_like('last_name', $keyword)
|
->or_like('last_name', $keyword)
|
||||||
|
->or_like('CONCAT_WS(" ", first_name, last_name)', $keyword)
|
||||||
->or_like('email', $keyword)
|
->or_like('email', $keyword)
|
||||||
->or_like('phone_number', $keyword)
|
->or_like('phone_number', $keyword)
|
||||||
->or_like('mobile_number', $keyword)
|
->or_like('mobile_number', $keyword)
|
||||||
|
|
|
@ -735,6 +735,7 @@ class Providers_model extends EA_Model {
|
||||||
->group_start()
|
->group_start()
|
||||||
->like('first_name', $keyword)
|
->like('first_name', $keyword)
|
||||||
->or_like('last_name', $keyword)
|
->or_like('last_name', $keyword)
|
||||||
|
->or_like('CONCAT_WS(" ", first_name, last_name)', $keyword)
|
||||||
->or_like('email', $keyword)
|
->or_like('email', $keyword)
|
||||||
->or_like('phone_number', $keyword)
|
->or_like('phone_number', $keyword)
|
||||||
->or_like('mobile_number', $keyword)
|
->or_like('mobile_number', $keyword)
|
||||||
|
|
|
@ -588,6 +588,7 @@ class Secretaries_model extends EA_Model {
|
||||||
->group_start()
|
->group_start()
|
||||||
->like('first_name', $keyword)
|
->like('first_name', $keyword)
|
||||||
->or_like('last_name', $keyword)
|
->or_like('last_name', $keyword)
|
||||||
|
->or_like('CONCAT_WS(" ", first_name, last_name)', $keyword)
|
||||||
->or_like('email', $keyword)
|
->or_like('email', $keyword)
|
||||||
->or_like('phone_number', $keyword)
|
->or_like('phone_number', $keyword)
|
||||||
->or_like('mobile_number', $keyword)
|
->or_like('mobile_number', $keyword)
|
||||||
|
|
Loading…
Reference in a new issue