[freeside-commits] branch FREESIDE_3_BRANCH updated. 4885e1722e43b119bca807221858abc84782c2b6

Ivan ivan at 420.am
Fri Oct 21 12:11:21 PDT 2016


The branch, FREESIDE_3_BRANCH has been updated
       via  4885e1722e43b119bca807221858abc84782c2b6 (commit)
      from  c9509e72848c1c1c61365390fe9caf39e0577cf4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4885e1722e43b119bca807221858abc84782c2b6
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Oct 21 12:11:20 2016 -0700

    multi-select for agent on RADIUS usage report, RT#73050

diff --git a/httemplate/search/sqlradius_usage.html b/httemplate/search/sqlradius_usage.html
index e5b1fa7..648f784 100644
--- a/httemplate/search/sqlradius_usage.html
+++ b/httemplate/search/sqlradius_usage.html
@@ -74,12 +74,16 @@ if ( $opt{'agentnum'} =~ /^(\d+)$/ ) {
   my @agentnums = grep /^(\d+)$/, $cgi->param('agentnum');
 
   if ( ! @agentnums ) {
-    @include_agents = qsearch('agent', {});
+    @include_agents = qsearch({ 'table'     => 'agent',
+                                'hashref'   => { 'disabled'=>'' },
+                                'extra_sql' => ' AND '. $curuser->agentnums_sql,
+                             });
   } elsif ( scalar(@agentnums) == 1 ) {
     $agentnum = $agentnums[0];
   } else {
     @include_agents = qsearch({ 'table'     => 'agent',
-                                'extra_sql' => 'WHERE agentnum IN ('.
+                                'hashref'   => { 'disabled' => '', },
+                                'extra_sql' => 'AND agentnum IN ('.
                                                  join(',', at agentnums). ') '.
                                                ' AND '. $curuser->agentnums_sql,
                              });

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/sqlradius_usage.html |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list