File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 59
59
LEFT JOIN locations ON clients.client_id = locations.location_client_id AND location_primary = 1
60
60
LEFT JOIN client_tags ON client_tags.client_id = clients.client_id
61
61
LEFT JOIN tags ON tags.tag_id = client_tags.tag_id
62
- WHERE (client_name LIKE '% $ q%' OR client_type LIKE '% $ q%' OR client_referral LIKE '% $ q%'
62
+ WHERE (client_name LIKE '% $ q%' OR client_abbreviation LIKE '% $ q %' OR client_type LIKE '%$ q%' OR client_referral LIKE '% $ q%'
63
63
OR contact_email LIKE '% $ q%' OR contact_name LIKE '% $ q%' OR contact_phone LIKE '% $ phone_query%'
64
64
OR contact_mobile LIKE '% $ phone_query%' OR location_address LIKE '% $ q%'
65
65
OR location_city LIKE '% $ q%' OR location_state LIKE '% $ q%' OR location_zip LIKE '% $ q%'
Original file line number Diff line number Diff line change 23
23
$ sql_clients = mysqli_query ($ mysqli , "SELECT * FROM clients
24
24
LEFT JOIN locations ON clients.client_id = locations.location_client_id AND location_primary = 1
25
25
WHERE client_archived_at IS NULL
26
- AND client_name LIKE '% $ query%'
26
+ AND ( client_name LIKE '% $ query%' OR client_abbreviation LIKE '% $ query %')
27
27
$ access_permission_query
28
28
ORDER BY client_id DESC LIMIT 5 "
29
29
);
You can’t perform that action at this time.
0 commit comments