diff --git a/agc_2-X/branches/agc_2.0.5/bin/AST_VDhopper.pl b/agc_2-X/branches/agc_2.0.5/bin/AST_VDhopper.pl
index 913b1dba..7335569c 100644
--- a/agc_2-X/branches/agc_2.0.5/bin/AST_VDhopper.pl
+++ b/agc_2-X/branches/agc_2.0.5/bin/AST_VDhopper.pl
@@ -1108,7 +1108,7 @@ foreach(@campaign_id)
$rec_countLISTS++;
}
$sthA->finish();
- if (length($camp_lists[$i])<3) {$camp_lists[$i]="''";}
+ if (length($camp_lists[$i])<3) {$camp_lists[$i]="'999876543210'";}
else {chop($camp_lists[$i]);}
if ($DB) {print " campaign lists count: $rec_countLISTS | $camp_lists[$i]\n";}
diff --git a/agc_2-X/branches/agc_2.0.5/bin/AST_VDhopper_MIXtest.pl b/agc_2-X/branches/agc_2.0.5/bin/AST_VDhopper_MIXtest.pl
index b3e7ef11..03474c94 100644
--- a/agc_2-X/branches/agc_2.0.5/bin/AST_VDhopper_MIXtest.pl
+++ b/agc_2-X/branches/agc_2.0.5/bin/AST_VDhopper_MIXtest.pl
@@ -1114,7 +1114,7 @@ foreach(@campaign_id)
$rec_countLISTS++;
}
$sthA->finish();
- if (length($camp_lists[$i])<3) {$camp_lists[$i]="''";}
+ if (length($camp_lists[$i])<3) {$camp_lists[$i]="'999876543210'";}
else {chop($camp_lists[$i]);}
if ($DB) {print " campaign lists count: $rec_countLISTS | $camp_lists[$i]\n";}
diff --git a/agc_2-X/trunk/bin/AST_VDhopper.pl b/agc_2-X/trunk/bin/AST_VDhopper.pl
index bd01c903..57ab09b7 100644
--- a/agc_2-X/trunk/bin/AST_VDhopper.pl
+++ b/agc_2-X/trunk/bin/AST_VDhopper.pl
@@ -56,6 +56,7 @@
# 90603-1157 - Fixed rare bug in list mix where statuses field do not end with -
# 90608-1201 - Added Drop Lockout Time Campaign setting option
# 90723-0842 - Added no hopper dial option to clear hopper leads
+# 90809-0347 - Quick fix for null list_id loading when no active campaign lists
#
# constants
@@ -1164,7 +1165,7 @@ foreach(@campaign_id)
$rec_countLISTS++;
}
$sthA->finish();
- if (length($camp_lists[$i])<3) {$camp_lists[$i]="''";}
+ if (length($camp_lists[$i])<3) {$camp_lists[$i]="'999876543210'";}
else {chop($camp_lists[$i]);}
if ($DB) {print " campaign lists count: $rec_countLISTS | $camp_lists[$i]\n";}
@@ -1337,7 +1338,7 @@ foreach(@campaign_id)
$rec_countLISTS++;
}
$sthA->finish();
- $lead_id_lists .= "'0'";
+ $lead_id_lists .= "'0'";
$order_stmt='';
$NEW_count = 0;
$NEW_level = 0;
diff --git a/agc_2-X/trunk/www/vicidial/AST_CLOSERsummary_hourly.php b/agc_2-X/trunk/www/vicidial/AST_CLOSERsummary_hourly.php
index b6aaa1cc..a94db024 100644
--- a/agc_2-X/trunk/www/vicidial/AST_CLOSERsummary_hourly.php
+++ b/agc_2-X/trunk/www/vicidial/AST_CLOSERsummary_hourly.php
@@ -6,6 +6,7 @@
# CHANGES
#
# 90801-0910 - First build
+# 90809-0216 - Added Exclude Outbound Drop Group option
#
require("dbconnect.php");
@@ -15,6 +16,8 @@ $PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW'];
$PHP_SELF=$_SERVER['PHP_SELF'];
+if (isset($_GET["exclude_rollover"])) {$exclude_rollover=$_GET["exclude_rollover"];}
+ elseif (isset($_POST["exclude_rollover"])) {$exclude_rollover=$_POST["exclude_rollover"];}
if (isset($_GET["inbound_rate"])) {$inbound_rate=$_GET["inbound_rate"];}
elseif (isset($_POST["inbound_rate"])) {$inbound_rate=$_POST["inbound_rate"];}
if (isset($_GET["outbound_rate"])) {$outbound_rate=$_GET["outbound_rate"];}
@@ -43,6 +46,7 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
$MT[0]='0';
if (strlen($shift)<2) {$shift='ALL';}
+if (strlen($exclude_rollover)<2) {$exclude_rollover='NO';}
#############################################
##### START SYSTEM_SETTINGS LOOKUP #####
@@ -94,14 +98,17 @@ if (!isset($group)) {$group = '';}
if (!isset($query_date)) {$query_date = $NOW_DATE;}
if (!isset($end_date)) {$end_date = $NOW_DATE;}
-$stmt="select group_id,group_name from vicidial_inbound_groups;";
+$exclude_rolloverSQL='';
+if (eregi("YES",$exclude_rollover))
+ {$exclude_rolloverSQL = " where group_id NOT IN(SELECT drop_inbound_group from vicidial_campaigns)";}
+$stmt="select group_id,group_name from vicidial_inbound_groups $exclude_rolloverSQL;";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$groups_to_print = mysql_num_rows($rslt);
$i=0;
-$LISTgroups[$i]='---NONE---';
-$i++;
-$groups_to_print++;
+#$LISTgroups[$i]='---NONE---';
+#$i++;
+#$groups_to_print++;
while ($i < $groups_to_print)
{
$row=mysql_fetch_row($rslt);
@@ -202,9 +209,9 @@ if ($bareformat < 1)
echo "Date Range:
\n";
echo "\n";
echo " to \n";
- echo "