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:
@@ -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++;
|
||||
}
|
||||
|
||||
@@ -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]',";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user