diff --git a/www/vicidial/listloader.php b/www/vicidial/listloader.php index 80ebc674..272d94a7 100644 --- a/www/vicidial/listloader.php +++ b/www/vicidial/listloader.php @@ -15,12 +15,13 @@ # 60906-1059 - added filter of non-digits in alt_phone field # 61110-1222 - added new USA-Canada DST scheme and Brazil DST scheme # 61128-1046 - added postal code GMT lookup and duplicate check options +# 70205-1703 - Defaulted phone_code to 1 if not populated # # make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time. # -$version = '2.0.2'; -$build = '61128-1046'; +$version = '2.0.3'; +$build = '70205-1703'; header ("Content-type: text/html; charset=utf-8"); @@ -872,6 +873,7 @@ if ($leadfile and filesize($LF_path)<=8388608) { } + if (strlen($phone_code)<1) {$phone_code = '1';} if ($multi_insert_counter > 8) { ### insert good deal into pending_transactions table ### $stmtZ = "INSERT INTO vicidial_list values$multistmt('','$entry_date','$modify_date','$status','$user','$vendor_lead_code','$source_id','$list_id','$gmt_offset','$called_since_last_reset','$phone_code','$phone_number','$title','$first_name','$middle_initial','$last_name','$address1','$address2','$address3','$city','$state','$province','$postal_code','$country','$gender','$date_of_birth','$alt_phone','$email','$security_phrase','$comments',0);"; diff --git a/www/vicidial/listloader.pl b/www/vicidial/listloader.pl index b15bfbb8..f93b4520 100644 --- a/www/vicidial/listloader.pl +++ b/www/vicidial/listloader.pl @@ -15,6 +15,7 @@ # 60906-1058 - added filter of non-digits in alt_phone field # 61110-1229 - added new USA-Canada DST scheme and Brazil DST scheme # 61128-1215 - added postal code GMT lookup and duplicate check options +# 70205-1703 - Defaulted phone_code to 1 if not populated # ### begin parsing run-time options ### @@ -434,6 +435,7 @@ foreach $oWkS (@{$oBook->{Worksheet}}) { $AC_processed++; } + if (length($phone_code)<1) {$phone_code = '1';} if ($multi_insert_counter > 8) { ### insert good deal into pending_transactions table ### $stmtZ = "INSERT INTO vicidial_list values$multistmt('','$entry_date','$modify_date','$status','$user','$vendor_lead_code','$source_id','$list_id','$gmt_offset','$called_since_last_reset','$phone_code','$phone_number','$title','$first_name','$middle_initial','$last_name','$address1','$address2','$address3','$city','$state','$province','$postal_code','$country','$gender','$date_of_birth','$alt_phone','$email','$security_phrase','$comments',0);"; @@ -454,7 +456,7 @@ foreach $oWkS (@{$oBook->{Worksheet}}) { } $total++; if ($total%100==0) { - print ""; + print ""; sleep(1); # flush(); } diff --git a/www/vicidial/listloader_super.pl b/www/vicidial/listloader_super.pl index 704e06b7..bbf353ce 100644 --- a/www/vicidial/listloader_super.pl +++ b/www/vicidial/listloader_super.pl @@ -14,6 +14,7 @@ # 60906-1056 - added filter of non-digits in alt_phone field # 61110-1229 - added new USA-Canada DST scheme and Brazil DST scheme # 61128-1207 - added postal code GMT lookup and duplicate check options +# 70205-1703 - Defaulted phone_code to 1 if not populated # ### begin parsing run-time options ### @@ -436,6 +437,7 @@ foreach $oWkS (@{$oBook->{Worksheet}}) { $AC_processed++; } + if (length($phone_code)<1) {$phone_code = '1';} if ($multi_insert_counter > 8) { ### insert good deal into pending_transactions table ### $stmtZ = "INSERT INTO vicidial_list values$multistmt('','$entry_date','$modify_date','$status','$user','$vendor_lead_code','$source_id','$list_id','$gmt_offset','$called_since_last_reset','$phone_code','$phone_number','$title','$first_name','$middle_initial','$last_name','$address1','$address2','$address3','$city','$state','$province','$postal_code','$country_code','$gender','$date_of_birth','$alt_phone','$email','$security_phrase','$comments',0);"; @@ -456,7 +458,7 @@ foreach $oWkS (@{$oBook->{Worksheet}}) { } $total++; if ($total%100==0) { - print ""; + print ""; sleep(1); # flush(); }