fixed small bugs in queries involving DNC and hopper
git-svn-id: svn://192.168.202.10@1251 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1499,9 +1499,9 @@ while($one_day_interval > 0)
|
||||
if ($sthArows > 0)
|
||||
{
|
||||
@aryA = $sthA->fetchrow_array;
|
||||
$VD_gmt_offset_now = $aryA[1];
|
||||
$VD_state = $aryA[2];
|
||||
$VD_list_id = $aryA[3];
|
||||
$VD_gmt_offset_now = $aryA[0];
|
||||
$VD_state = $aryA[1];
|
||||
$VD_list_id = $aryA[2];
|
||||
}
|
||||
$sthA->finish();
|
||||
$alt_dial_phones_count=0;
|
||||
|
||||
@@ -4415,7 +4415,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$UD_DNC_campaign=0;
|
||||
$UD_DNC_internal=0;
|
||||
$vh_phone='';
|
||||
$stmt="SELECT phone_number FROM vicidial_hopper where lead_id='$lead_id' and status='HOLD';";
|
||||
$stmt="SELECT phone_number FROM vicidial_list where lead_id='$lead_id';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
|
||||
@@ -6565,7 +6565,7 @@ if ($ADD==121)
|
||||
|
||||
$campaigns_list = "<option SELECTED value=\"SYSTEM_INTERNAL\">SYSTEM_INTERNAL - INTERNAL VICIDIAL DNC LIST</option>\n";
|
||||
|
||||
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns where use_campaign_dnc='Y' order by campaign_id";
|
||||
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns where use_campaign_dnc IN('Y','AREACODE') order by campaign_id";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$campaigns_to_print = mysql_num_rows($rslt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user