Update contact phone number search
Update the phone search to use the country code and phone number or the phone number alone.
This commit is contained in:
parent
fa672d21af
commit
3bed9c8a5e
|
|
@ -135,7 +135,10 @@
|
|||
if (is_numeric($search)) {
|
||||
$sql_search = "and contact_uuid in ( ";
|
||||
$sql_search .= " select contact_uuid from v_contact_phones ";
|
||||
$sql_search .= " where phone_number like :search ";
|
||||
$sql_search .= " where ( ";
|
||||
$sql_search .= " concat(phone_country_code, phone_number) like :search ";
|
||||
$sql_search .= " or phone_number like :search ";
|
||||
$sql_search .= " ) ";
|
||||
$sql_search .= ") ";
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue