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:
FusionPBX
2024-07-12 02:48:44 -06:00
committed by GitHub
parent fa672d21af
commit 3bed9c8a5e

View File

@@ -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 {