From: ivan Date: Sun, 6 Aug 2006 09:14:04 +0000 (+0000) Subject: this just needs to be a hashref and we should be all set with radius groups then X-Git-Tag: BEFORE_FINAL_MASONIZE~58 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=86102d2ff550b869f09dcfaa30bbdc98e5580d56;hp=936038efe0b75ad037619167f62db7fe16c25255 this just needs to be a hashref and we should be all set with radius groups then --- diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index c4dbb00c9..2606c1453 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -189,17 +189,19 @@ 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 { - []; - } - }, + { + #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 ... ]