projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c9509e7
)
multi-select for agent on RADIUS usage report, RT#73050
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 21 Oct 2016 19:11:20 +0000
(12:11 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 21 Oct 2016 19:11:20 +0000
(12:11 -0700)
httemplate/search/sqlradius_usage.html
patch
|
blob
|
history
diff --git
a/httemplate/search/sqlradius_usage.html
b/httemplate/search/sqlradius_usage.html
index
e5b1fa7
..
648f784
100644
(file)
--- 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 ) {
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',
} 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(',',@agentnums). ') '.
' AND '. $curuser->agentnums_sql,
});
join(',',@agentnums). ') '.
' AND '. $curuser->agentnums_sql,
});