fixed bug 000008, problem with multiplt CALLBK entries going LIVE in vicidial_callbacks

git-svn-id: svn://192.168.202.10@104 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2006-08-01 20:39:09 +00:00
parent ad0362dcbc
commit 8bc123fb43
3 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -37,6 +37,7 @@
# 60511-1150 - Added inserts into vicidial_campaign_stats table
# 60609-1451 - Added ability to filter by DNC list vicidial_dnc
# 60614-1159 - Added campaign lead recycling ability
# 60801-1634 - Fixed Callback activation bug 000008
#
# constants
@@ -249,7 +250,7 @@ if ($CBHOLD_count > 0)
$event_string = "|CALLBACKS LISTACT|$affected_rows|";
&event_logger;
$stmtA = "UPDATE vicidial_callbacks set status='LIVE' where lead_id IN($update_leads);";
$stmtA = "UPDATE vicidial_callbacks set status='LIVE' where lead_id IN($update_leads) and status NOT IN('INACTIVE','DEAD','ARCHIVE');;";
$affected_rows = $dbhA->do($stmtA);
if ($DB) {print "Scheduled Callbacks Activated: $affected_rows\n";}
$event_string = "|CALLBACKS CB ACT |$affected_rows|";