\n";
echo "\n";
echo "\n";
diff --git a/www/vicidial/vicidial_whiteboard_functions.php b/www/vicidial/vicidial_whiteboard_functions.php
index 315d7529..dc29b108 100644
--- a/www/vicidial/vicidial_whiteboard_functions.php
+++ b/www/vicidial/vicidial_whiteboard_functions.php
@@ -148,6 +148,7 @@ function RefreshReportWindow() {
var target_per_agent=document.getElementById("target_per_agent").value;
var rpt_field = document.getElementById("report_type");
var report_type = rpt_field.options[rpt_field.selectedIndex].value;
+ var report_type_text = rpt_field.options[rpt_field.selectedIndex].text;
if (!target_per_agent) {target_per_agent=0;}
if (!target_gross) {target_gross=0;}
@@ -241,6 +242,7 @@ function RefreshReportWindow() {
var regRPTrates = new RegExp("rates","g");
var regRPTcomma = new RegExp(", $","g");
var regRPTpipe = new RegExp("|$","g");
+ var regRPTall = new RegExp("--ALL--","g");
var CPstr=campaign_parameters_str.replace(regRPTcomma, '');
var UGPstr=user_groups_parameters_str.replace(regRPTcomma, '');
@@ -249,9 +251,13 @@ function RefreshReportWindow() {
var DPstr=did_parameters_str.replace(regRPTcomma, '');
var SFstr=status_flags_parameters_str.replace(regRPTcomma, '');
+ var CPstr=CPstr.replace(regRPTall, '');
+ var UGPstr=UGPstr.replace(regRPTall, '');
+ var USPstr=USPstr.replace(regRPTall, '');
+ var GPstr=GPstr.replace(regRPTall, '');
var report_parameters="