diff options
author | ivan <ivan> | 2002-03-24 14:29:00 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-03-24 14:29:00 +0000 |
commit | 7dc23049c25d316da196647a8be1d74dfc09a02a (patch) | |
tree | 9ad875d5463e34e228f910ec919930e9ca8b10de /httemplate/edit/svc_acct.cgi | |
parent | 74e64d70361848f089aad9a7881c2af9caf6e479 (diff) |
ICRADIUS groups all done! UI and provisioning. closes: Bug#362
fix some bugs in the export and add queue_dangerous_controls option too
Diffstat (limited to 'httemplate/edit/svc_acct.cgi')
-rwxr-xr-x | httemplate/edit/svc_acct.cgi | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index 8a80d4c72..723c91c29 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -61,13 +61,15 @@ if ( $cgi->param('error') ) { foreach my $part_svc_column ( grep { $_->columnflag } $part_svc->all_part_svc_column ) { - $svc_acct->setfield( $part_svc_column->columnname, - $part_svc_column->columnvalue, - ); + if ( $part_svc_column->columnname eq 'usergroup' ) { + @groups = split(',', $part_svc_column->columnvalue); + } else { + $svc_acct->setfield( $part_svc_column->columnname, + $part_svc_column->columnvalue, + ); + } } - #SET DEFAULT GROUP(S) FROM PART_SVC!!!! - } } my $action = $svcnum ? 'Edit' : 'Add'; @@ -244,9 +246,13 @@ foreach my $r ( grep { /^r(adius|[cr])_/ } fields('svc_acct') ) { } } -print '<TR><TD ALIGN="right">RADIUS groups</TD><TD>'. - &FS::svc_acct::radius_usergroup_selector( \@groups ). - '</TD></TR>'; +print '<TR><TD ALIGN="right">RADIUS groups</TD>'; +if ( $part_svc->part_svc_column('usergroup')->columnflag eq "F" ) { + print '<TD BGCOLOR="#ffffff">'. join('<BR>', @groups); +} else { + print '<TD>'. &FS::svc_acct::radius_usergroup_selector( \@groups ); +} +print '</TD></TR>'; #submit print qq!</TABLE><BR><INPUT TYPE="submit" VALUE="Submit">!; |