diff options
author | ivan <ivan> | 2006-08-06 09:10:07 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-08-06 09:10:07 +0000 |
commit | 936038efe0b75ad037619167f62db7fe16c25255 (patch) | |
tree | 14074f0e128ddaaaa4a5678754a4cf48fbd6ab52 /FS/FS/svc_acct.pm | |
parent | 7fc8c3c193c3d673a58566569a0e82609212a087 (diff) |
this should process default usergroup as well as fixed now
Diffstat (limited to 'FS/FS/svc_acct.pm')
-rw-r--r-- | FS/FS/svc_acct.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index ad8d9a152..c4dbb00c9 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -188,6 +188,20 @@ Creates a new account. To add the account to the database, see L<"insert">. sub table { 'svc_acct'; } +sub _fieldhandlers { + #false laziness with edit/svc_acct.cgi + 'usergroup' => sub { + my $usergroup = shift; + if ( ref($usergroup) eq 'ARRAY' ) { + $usergroup; + } elsif ( length($usergroup) ) { + [ split(/\s*,\s*/, $usergroup) ]; + } else { + []; + } + }, +} + =item insert [ , OPTION => VALUE ... ] Adds this account to the database. If there is an error, returns the error, |