diff options
author | mark <mark> | 2011-11-11 02:00:10 +0000 |
---|---|---|
committer | mark <mark> | 2011-11-11 02:00:10 +0000 |
commit | 7cc0bade6f2c58681a86f93f237978e8a5e3260b (patch) | |
tree | c2ec958b3a06429790847cf2965072ce8bd93ac7 /httemplate | |
parent | 72deba42ac5847c2a6bdeea20157035b8f9df7ae (diff) |
RADIUS groups for svc_broadband, #14695
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/part_svc.cgi | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi index 8ca019649..e899ad073 100755 --- a/httemplate/edit/part_svc.cgi +++ b/httemplate/edit/part_svc.cgi @@ -139,7 +139,11 @@ Service <INPUT TYPE="text" NAME="svc" VALUE="<% $hashref->{svc} %>"><BR> % ) % } fields($layer); % } -% push @fields, 'usergroup' if $layer eq 'svc_acct'; #kludge +% push @fields, 'usergroup' +% if $layer eq 'svc_acct' +% or ( $layer eq 'svc_broadband' and +% $conf->exists('svc_broadband-radius') ); # double kludge +% # (but we do want to check the config, right?) % $part_svc->svcpart($clone) if $clone; #haha, undone below % % @@ -320,7 +324,9 @@ Service <INPUT TYPE="text" NAME="svc" VALUE="<% $hashref->{svc} %>"><BR> % 'curr_value' => $value, % 'element_name' => "${layer}__${field}", % 'element_etc' => $disabled, -% 'multiple' => ($flag eq 'S'), +% 'multiple' => ($def->{multiple} || +% $flag eq 'S'), +% # allow the table def to force 'multiple' % ); % % } elsif ( $def->{type} eq 'communigate_pro-accessmodes' ) { @@ -400,6 +406,7 @@ Table <% $widget->html %> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +my $conf = FS::Conf->new; my $part_svc; my $clone = ''; if ( $cgi->param('clone') && $cgi->param('clone') =~ /^(\d+)$/ ) {#clone |