agent-side, fix for case-sensitive reserved custom fields

git-svn-id: svn://192.168.202.10@1749 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2011-10-25 18:38:10 +00:00
parent f426f4dc61
commit 4214e263d1
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
$A_field_order[$o] = $rowx[15];
$A_field_value[$o] = '';
if (!preg_match("/\|$A_field_label[$o]\|/",$vicidial_list_fields))
if (!preg_match("/\|$A_field_label[$o]\|/i",$vicidial_list_fields))
{
if ( ($A_field_type[$o]=='DISPLAY') or ($A_field_type[$o]=='SCRIPT') )
{
@@ -118,7 +118,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
$A_field_value[$o] = trim("$row[$o]");
if ($A_field_select[$o]=='----EMPTY----')
{$A_field_value[$o]='';}
if (preg_match("/\|$A_field_label[$o]\|/",$vicidial_list_fields))
if (preg_match("/\|$A_field_label[$o]\|/i",$vicidial_list_fields))
{$A_field_value[$o] = '--A--' . $A_field_label[$o] . '--B--';}
$o++;
}
+4 -3
View File
@@ -14,10 +14,11 @@
# 100916-1749 - Added non-lead variable parsing
# 110719-0856 - Added HIDEBLOB type
# 110730-2335 - Added call_id variable
# 111025-1433 - Fixed case sensitivity on list fields
#
$version = '2.4-6';
$build = '110730-2335';
$version = '2.4-7';
$build = '111025-1433';
require("dbconnect.php");
require_once("functions.php");
@@ -316,7 +317,7 @@ if ($stage=='SUBMIT')
}
else
{
if (preg_match("/\|$A_field_label[$o]\|/",$vicidial_list_fields))
if (preg_match("/\|$A_field_label[$o]\|/i",$vicidial_list_fields))
{
$VL_update_SQL .= "$A_field_label[$o]='$A_field_value[$o]',";
}