Update contact_import.php (#5143)
This commit is contained in:
parent
9f2ef85f95
commit
2efb2f7804
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue