Added ability to purge only one campaign's leads in the hopper, issue #349

git-svn-id: svn://192.168.202.10@1474 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2010-07-07 03:41:54 +00:00
parent 6d0f35b712
commit 3bb2ef8e1d
3 changed files with 19 additions and 3 deletions
@@ -63,6 +63,7 @@
# 91026-1207 - Added AREACODE DNC option
# 100409-1101 - Fix for rare dial-time duplicate hopper load issue
# 100427-0429 - Fix for list mix no-status-selected issue
# 100706-2332 - Added ability to purge only one campaign's leads in the hopper
#
# constants
@@ -302,7 +303,14 @@ if ($DB) {print "TIME DEBUG: $LOCAL_GMT_OFF_STD|$LOCAL_GMT_OFF|$isdst| GMT: $h
if ($wipe_hopper_clean)
{
$stmtA = "DELETE from $vicidial_hopper;";
if (length($CLIcampaign)>0)
{
$stmtA = "DELETE from $vicidial_hopper where campaign_id = '$CLIcampaign';";
}
else
{
$stmtA = "DELETE from $vicidial_hopper;";
}
$affected_rows = $dbhA->do($stmtA);
if ($DB) {print "Hopper Wiped Clean: $affected_rows\n";}
$event_string = "|HOPPER WIPE CLEAN|";