mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user