From 1412d82eda30540c1d2587cafc63e315bf1d1668 Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 16 Oct 2006 21:37:53 +0000 Subject: [PATCH] changed hopper reset to delete all READY, QUEUE and DONE status records in the vicidial_hopper git-svn-id: svn://192.168.202.10@358 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/admin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index 675924ff..62a896d1 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -4004,14 +4004,14 @@ if ($ADD==41) { echo "
RESETTING CAMPAIGN LEAD HOPPER\n"; echo "
- Wait 1 minute before dialing next number\n"; - $stmt="DELETE from vicidial_hopper where campaign_id='$campaign_id' and status='READY';"; + $stmt="DELETE from vicidial_hopper where campaign_id='$campaign_id' and status IN('READY','QUEUE','DONE');"; $rslt=mysql_query($stmt, $link); ### LOG RESET TO LOG FILE ### if ($WeBRooTWritablE > 0) { $fp = fopen ("./admin_changes_log.txt", "a"); - fwrite ($fp, "$date|CAMPAIGN HOPPERRESET|$PHP_AUTH_USER|$ip|campaign_name='$campaign_name'|\n"); + fwrite ($fp, "$date|CAMPAIGN HOPPERRESET|$PHP_AUTH_USER|$ip|$stmt|\n"); fclose($fp); } } @@ -4141,14 +4141,14 @@ if ($ADD==44) { echo "
RESETTING CAMPAIGN LEAD HOPPER\n"; echo "
- Wait 1 minute before dialing next number\n"; - $stmt="DELETE from vicidial_hopper where campaign_id='$campaign_id' and status='READY';"; + $stmt="DELETE from vicidial_hopper where campaign_id='$campaign_id' and status IN('READY','QUEUE','DONE');;"; $rslt=mysql_query($stmt, $link); ### LOG HOPPER RESET TO LOG FILE ### if ($WeBRooTWritablE > 0) { $fp = fopen ("./admin_changes_log.txt", "a"); - fwrite ($fp, "$date|CAMPAIGN HOPPERRESET|$PHP_AUTH_USER|$ip|campaign_name='$campaign_name'|\n"); + fwrite ($fp, "$date|CAMPAIGN HOPPERRESET|$PHP_AUTH_USER|$ip|$stmt|\n"); fclose($fp); } }