From 380af33c054c757d8222710911b955b040ce9679 Mon Sep 17 00:00:00 2001 From: mattf Date: Tue, 4 Jun 2013 00:58:03 +0000 Subject: [PATCH] Fixed bug in email when agent choose in-groups is disabled, vicidial.php 2.7 trunk git-svn-id: svn://192.168.202.10@1991 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/branches/agc_2.7/www/agc/vicidial.php | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/agc_2-X/branches/agc_2.7/www/agc/vicidial.php b/agc_2-X/branches/agc_2.7/www/agc/vicidial.php index 78602db6..a99dec80 100644 --- a/agc_2-X/branches/agc_2.7/www/agc/vicidial.php +++ b/agc_2-X/branches/agc_2.7/www/agc/vicidial.php @@ -402,10 +402,10 @@ # 130417-1937 - Changed locked agent choose in-group/closer/territories to auto-close # 130508-2223 - Cleanup for other language builds # 130508-2255 - Release version 2.7 -# +# 130603-2055 - Fixed bug in email when agent choose in-groups is disabled -$version = '2.7-370c'; -$build = '130508-2255'; +$version = '2.7-371c'; +$build = '130603-2055'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=79; $one_mysql_log=0; @@ -10889,6 +10889,26 @@ function set_length(SLnumber,SLlength_goal,SLdirection) } else { + # Added to get email counts so inbound emails will come in - this is normally done in CloserSelectContent_select, which is bypassed if agents aren't allowed to select ingroups + var loop_ct = 0; + EMAILgroupCOUNT = 0; + PHONEgroupCOUNT = 0; + incomingEMAILS = 0; + while (loop_ct < INgroupCOUNT) + { + if (VARingroup_handlers[loop_ct]=="EMAIL") + { + incomingEMAILgroups[incomingEMAILS]=VARingroups[loop_ct]; + EMAILgroupCOUNT++; + incomingEMAILS++; + } + else + { + PHONEgroupCOUNT++; + } + loop_ct++; + } + VU_agent_choose_ingroups_DV = "MGRLOCK"; var live_CSC_HTML = "Manager has selected groups for you
"; document.vicidial_form.CloserSelectList.value = '';