projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6c8c35f
)
fix radius data usage report w/sqlradius_withdomain export, RT#19964
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 11 Mar 2013 04:53:55 +0000
(21:53 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 11 Mar 2013 04:53:55 +0000
(21:53 -0700)
httemplate/search/report_sqlradius_usage.html
patch
|
blob
|
history
diff --git
a/httemplate/search/report_sqlradius_usage.html
b/httemplate/search/report_sqlradius_usage.html
index
01215e8
..
7e54465
100644
(file)
--- a/
httemplate/search/report_sqlradius_usage.html
+++ b/
httemplate/search/report_sqlradius_usage.html
@@
-8,13
+8,18
@@
'empty_label' => 'all',
&>
'empty_label' => 'all',
&>
-% my @exporttypes = map { "'$_'" } qw(sqlradius broadband_sqlradius);
+%#more future-proof to actually ask all exports if they ->can('usage_sessions')
+% my @exporttypes = qw( sqlradius sqlradius_withdomain broadband_sqlradius
+% phone_sqlradius radiator
+% );
<& /elements/tr-select-table.html,
'label' => 'Export',
'table' => 'part_export',
'name_col' => 'label',
'hashref' => {},
<& /elements/tr-select-table.html,
'label' => 'Export',
'table' => 'part_export',
'name_col' => 'label',
'hashref' => {},
- 'extra_sql' => ' WHERE exporttype IN('.join(',', @exporttypes).')',
+ 'extra_sql' => ' WHERE exporttype IN ( '.
+ join(',', map "'$_'", @exporttypes).
+ ')',
'disable_empty' => 1,
'order_by' => 'ORDER BY exportnum',
&>
'disable_empty' => 1,
'order_by' => 'ORDER BY exportnum',
&>