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:
@@ -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|";
|
||||
|
||||
Reference in New Issue
Block a user