[freeside-commits] freeside/httemplate/edit/process svc_acct.cgi,
1.6, 1.7
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Dec 4 18:37:16 PST 2006
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail:/tmp/cvs-serv17993/httemplate/edit/process
Modified Files:
svc_acct.cgi
Log Message:
editable service usage
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/svc_acct.cgi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- svc_acct.cgi 23 Aug 2006 22:25:37 -0000 1.6
+++ svc_acct.cgi 5 Dec 2006 02:37:14 -0000 1.7
@@ -23,13 +23,13 @@
%#unmunge usergroup
%$cgi->param('usergroup', [ $cgi->param('radius_usergroup') ] );
%
-%my $new = new FS::svc_acct ( {
-% map {
-% $_, scalar($cgi->param($_));
+%my %hash = $svcnum ? $old->hash : ();
+%map {
+% $hash{$_} = scalar($cgi->param($_));
% #} qw(svcnum pkgnum svcpart username _password popnum uid gid finger dir
% # shell quota slipip)
-% } ( fields('svc_acct'), qw( pkgnum svcpart usergroup ) )
-%} );
+% } (fields('svc_acct'), qw ( pkgnum svcpart usergroup ));
+%my $new = new FS::svc_acct ( \%hash );
%
%my $error;
%if ( $svcnum ) {
More information about the freeside-commits
mailing list