Fix for campaign ID underscore issue #1265

git-svn-id: svn://192.168.202.10@3430 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2021-04-24 02:46:22 +00:00
parent c37e4a5398
commit 97ece9cfeb
2 changed files with 11 additions and 3 deletions
+7
View File
@@ -617,6 +617,13 @@ OTHER CHANGES:
172. Added options to add/update/delete custom fields within the 'update_list'
function of the Non-Agent API.
173. Added Settings Compare Utility page to Admin Utilities to allow you to
compare the settings from two records in your system and see what
settings are different between the two.
174. Added campaign options to add extra lead-field columns to the "Calls In
Queue" panel in the agent screen.
+4 -3
View File
@@ -137,9 +137,10 @@
# 201122-0928 - Added code for dialy call count limits
# 201218-2224 - Added code for SHARED agent campaigns
# 210207-0952 - Added more logging, debug code and fixes for SHARED agent campaigns
# 210423-2241 - Fix for campaign ID underscore issue #1265
#
$build='210207-0952';
$build='210423-2241';
### begin parsing run-time options ###
if (length($ARGV[0])>1)
{
@@ -693,7 +694,7 @@ while($one_day_interval > 0)
$user_campaignIP .= "$DBlive_campaign[$user_counter]__$DBlive_server_ip[$user_counter]|";
$DBIPcampaign[$user_CIPct] = "$DBlive_campaign[$user_counter]";
$DBIPaddress[$user_CIPct] = "$DBlive_server_ip[$user_counter]";
$DBIPcampaign_sort[$user_CIPct] = $DBlive_campaign_rank[$user_counter].'_'.$DBlive_last_call_epoch[$user_counter].'_'.$DBlive_campaign[$user_counter].'_'.$user_CIPct;
$DBIPcampaign_sort[$user_CIPct] = $DBlive_campaign_rank[$user_counter].'---'.$DBlive_last_call_epoch[$user_counter].'---'.$DBlive_campaign[$user_counter].'---'.$user_CIPct;
if ($DBX) {print "Debug agent campaign sort: $DBIPcampaign_sort[$user_CIPct]\n";}
$user_CIPct++;
}
@@ -803,7 +804,7 @@ while($one_day_interval > 0)
$user_CIPct_sort = 0;
foreach(@DBIPcampaign_sorted)
{
@camp_sort_line = split(/_/,$DBIPcampaign_sorted[$user_CIPct_sort]);
@camp_sort_line = split(/---/,$DBIPcampaign_sorted[$user_CIPct_sort]);
$user_CIPct = $camp_sort_line[3];
$debug_string='';
$user_counter=0;