Update contact_import.php (#5143)

This commit is contained in:
agree
2020-02-04 15:08:05 -05:00
committed by GitHub
parent 9f2ef85f95
commit 2efb2f7804

View File

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