summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2006-08-06 09:10:07 +0000
committerivan <ivan>2006-08-06 09:10:07 +0000
commit936038efe0b75ad037619167f62db7fe16c25255 (patch)
tree14074f0e128ddaaaa4a5678754a4cf48fbd6ab52 /httemplate
parent7fc8c3c193c3d673a58566569a0e82609212a087 (diff)
this should process default usergroup as well as fixed now
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/svc_acct.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi
index 4b324a501..8d50aeda0 100755
--- a/httemplate/edit/svc_acct.cgi
+++ b/httemplate/edit/svc_acct.cgi
@@ -69,7 +69,11 @@ unless ( $svcnum || $cgi->param('error') ) { #adding
}
$svc_acct->set_default_and_fixed( {
- 'usergroup' => sub { @groups = split(',', shift ); },
+ #false laziness w/svc-acct::_fieldhandlers
+ 'usergroup' => sub { return $_[0] if ref($_[0]) eq 'ARRAY';
+ @groups = split(/\s*,\s*/, shift );
+ \@groups;
+ },
} );
}