[freeside-commits] freeside/httemplate/edit/process svc_acct.cgi, 1.18, 1.19
Ivan,,,
ivan at wavetail.420.am
Fri Dec 10 14:08:38 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv9265/httemplate/edit/process
Modified Files:
svc_acct.cgi
Log Message:
cardfortress backend support
Index: svc_acct.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/svc_acct.cgi,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -w -d -r1.18 -r1.19
--- svc_acct.cgi 12 Aug 2010 22:25:38 -0000 1.18
+++ svc_acct.cgi 10 Dec 2010 22:08:36 -0000 1.19
@@ -44,11 +44,14 @@
}
my %hash = $svcnum ? $old->hash : ();
-map {
+for ( fields('svc_acct'), qw( pkgnum svcpart usergroup ) ) {
$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 ));
+}
+if ( $svcnum ) {
+ for ( grep $old->$_, qw( cf_privatekey ) ) {
+ $hash{$_} = $old->$_;
+ }
+}
my $new = new FS::svc_acct ( \%hash );
my $error = '';
More information about the freeside-commits
mailing list