From 97872f92311513199a17aa370e14d489e8ff83c2 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 29 Apr 2016 05:50:48 +0000 Subject: [PATCH] Fixed custom table bug in web lead loader git-svn-id: svn://192.168.202.10@2525 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../www/vicidial/admin_listloader_fourth_gen.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/admin_listloader_fourth_gen.php b/agc_2-X/trunk/www/vicidial/admin_listloader_fourth_gen.php index b4cdad7d..d9981043 100644 --- a/agc_2-X/trunk/www/vicidial/admin_listloader_fourth_gen.php +++ b/agc_2-X/trunk/www/vicidial/admin_listloader_fourth_gen.php @@ -64,10 +64,11 @@ # 150728-0732 - Added state fullname to abbreviation conversion feature (state_conversion) # 150810-0750 - Added compatibility for custom fields data option # 160102-1039 - Better special characters support +# 160428-2359 - Fixed custom table bug # -$version = '2.12-62'; -$build = '160102-1039'; +$version = '2.12-63'; +$build = '160428-2359'; require("dbconnect_mysqli.php"); require("functions.php"); @@ -1266,7 +1267,13 @@ if (($leadfile) && ($LF_path)) $list_id_override=$template_row["list_id"]; } $standard_variables=$template_row["standard_variables"]; - $custom_table=$template_row["custom_table"]; +# $custom_table=$template_row["custom_table"]; + if (!$master_list_override) { + $custom_table=$template_row["custom_table"]; + } + else { + $custom_table= "custom_$list_id_override"; + } $custom_variables=$template_row["custom_variables"]; $template_statuses=$template_row["template_statuses"]; if (strlen($template_statuses)>0) {