[freeside-commits] freeside/httemplate/edit svc_acct.cgi,1.37,1.38
Ivan,,,
ivan at wavetail.420.am
Sun Aug 6 02:10:09 PDT 2006
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv1316/httemplate/edit
Modified Files:
svc_acct.cgi
Log Message:
this should process default usergroup as well as fixed now
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/svc_acct.cgi,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- svc_acct.cgi 29 Jun 2006 13:47:44 -0000 1.37
+++ svc_acct.cgi 6 Aug 2006 09:10:07 -0000 1.38
@@ -69,7 +69,11 @@
}
$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;
+ },
} );
}
More information about the freeside-commits
mailing list