[freeside-commits] freeside/httemplate/edit/process svc_acct.cgi, 1.18, 1.18.2.1

Ivan,,, ivan at wavetail.420.am
Fri Dec 10 14:09:08 PST 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv9273/httemplate/edit/process

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	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.18.2.1
diff -u -w -d -r1.18 -r1.18.2.1
--- svc_acct.cgi	12 Aug 2010 22:25:38 -0000	1.18
+++ svc_acct.cgi	10 Dec 2010 22:09:06 -0000	1.18.2.1
@@ -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