Added entry_date as custom field SCRIPT type variable
git-svn-id: svn://192.168.202.10@2945 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# functions for agent scripts
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
#
|
||||
# CHANGES:
|
||||
@@ -43,6 +43,7 @@
|
||||
# 171021-1340 - Fix to update default field if duplicate field in custom fields changed
|
||||
# 171116-2333 - Added code for duplicate custom fields
|
||||
# 171129-0812 - Fixed issue with duplicate custom fields
|
||||
# 180319-1339 - Added entry_date as custom field SCRIPT type variable
|
||||
#
|
||||
|
||||
# $mysql_queries = 26
|
||||
@@ -1005,6 +1006,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
|
||||
if ($list_lead_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$entry_date = trim($row[1]);
|
||||
$dispo = trim($row[3]);
|
||||
$tsr = trim($row[4]);
|
||||
$vendor_id = trim($row[5]);
|
||||
@@ -1078,6 +1080,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
|
||||
}
|
||||
|
||||
$CFoutput = preg_replace('/--U--lead_id--V--/i',urlencode($lead_id),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--entry_date--V--/i',urlencode($entry_date),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--vendor_id--V--/i',urlencode($vendor_id),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--vendor_lead_code--V--/i',urlencode($vendor_lead_code),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--list_id--V--/i',urlencode($list_id),$CFoutput);
|
||||
@@ -1145,6 +1148,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
|
||||
$CFoutput = preg_replace('/--U--list_description--V--/i',urlencode($list_description),$CFoutput);
|
||||
|
||||
$CFoutput = preg_replace('/--A--lead_id--B--/i',"$lead_id",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--entry_date--B--/i',"$entry_date",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--vendor_id--B--/i',"$vendor_id",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--vendor_lead_code--B--/i',"$vendor_lead_code",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--list_id--B--/i',"$list_id",$CFoutput);
|
||||
|
||||
Reference in New Issue
Block a user