From f917c11448d13e758d7c833b7c11ffd30158f87a Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 18 Dec 2015 11:56:16 +0000 Subject: [PATCH] Added User Group Call Times restrictions to select list for the Inbound Report v2 git-svn-id: svn://192.168.202.10@2434 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/vicidial/AST_CLOSERstats_v2.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats_v2.php b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats_v2.php index b9193417..d1f8a4a6 100644 --- a/agc_2-X/trunk/www/vicidial/AST_CLOSERstats_v2.php +++ b/agc_2-X/trunk/www/vicidial/AST_CLOSERstats_v2.php @@ -52,6 +52,7 @@ # 151124-1236 - Changed bottom chart to pull all time segments # 151125-1633 - Added search archive option # 151216-1023 - Forked from original as "v2" for Call Time option changes, added CHAT option +# 151218-0651 - Added User Group Call Times restrictions to select list # $startMS = microtime(); @@ -523,7 +524,7 @@ $MAIN.="\n"; $MAIN.="\n"; $MAIN.="\n"; -$call_time_stmt="select call_time_id, call_time_name from vicidial_call_times order by call_time_id"; +$call_time_stmt="select call_time_id, call_time_name from vicidial_call_times $whereLOGadmin_viewable_call_timesSQL order by call_time_id;"; $call_time_rslt=mysql_to_mysqli($call_time_stmt, $link); if (mysqli_num_rows($call_time_rslt)>0) { $MAIN.="\n"; @@ -566,7 +567,7 @@ else { $call_time_ranges=array(); -$ct_stmt="select * from vicidial_call_times where call_time_id='$shift'"; +$ct_stmt="select * from vicidial_call_times where call_time_id='$shift' $LOGadmin_viewable_call_timesSQL;"; if ($DB) {$MAIN.=$ct_stmt."\n";} $ct_rslt=mysql_to_mysqli($ct_stmt, $link); if (mysqli_num_rows($ct_rslt)>0)