mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update contact_import.php (#5143)
This commit is contained in:
@@ -291,9 +291,9 @@
|
||||
$parent = get_parent($schema, $table_name);
|
||||
|
||||
//remove formatting from the phone number
|
||||
// if ($field_name == "phone_number") {
|
||||
// $result[$key] = preg_replace('{\D}', '', $result[$key]);
|
||||
// }
|
||||
if ($field_name == "phone_number") {
|
||||
$result[$key] = preg_replace('{(?!^\+)[\D]}', '', $result[$key]);
|
||||
}
|
||||
|
||||
//build the data array
|
||||
if (strlen($table_name) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user