Update contact_import.php

This commit is contained in:
FusionPBX 2021-12-13 11:49:13 -07:00 committed by GitHub
parent 1a85403f23
commit 6231a588ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -318,6 +318,9 @@
//echo "table_name: $table_name<br />\n";
//echo "field_name: $field_name<br />\n";
//get the parent table name
$parent = get_parent($schema, $table_name);
//add fields to the stack
if (isset($field_count[$table_name][$field_name])) {
$field_count[$table_name][$field_name]++;
@ -329,9 +332,6 @@
//set the ordinal ID
$id = $field_count[$table_name][$field_name];
//get the parent table name
$parent = get_parent($schema, $table_name);
//remove formatting from the phone number
if ($field_name == "phone_number") {
$result[$key] = preg_replace('{(?!^\+)[\D]}', '', $result[$key]);