[freeside-commits] freeside/httemplate/edit/process cust_main.cgi, 1.48, 1.49

Ivan,,, ivan at wavetail.420.am
Fri Apr 8 11:10:23 PDT 2011


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

Modified Files:
	cust_main.cgi 
Log Message:
fix edits of customers with tokenized cards, RT#12353

Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/cust_main.cgi,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -w -d -r1.48 -r1.49
--- cust_main.cgi	27 Mar 2011 22:46:38 -0000	1.48
+++ cust_main.cgi	8 Apr 2011 18:10:21 -0000	1.49
@@ -254,8 +254,14 @@
   if ($new->stateid =~ /^xxx/) {
     $new->stateid($old->stateid);
   }
-  if ($new->payby =~ /^(CARD|DCRD)$/ && $new->payinfo =~ /xx/) {
+  if ( $new->payby =~ /^(CARD|DCRD)$/
+       && (    $new->payinfo =~ /xx/
+            || $new->payinfo =~ /^\s*N\/A\s+\(tokenized\)\s*$/
+          )
+     )
+  {
     $new->payinfo($old->payinfo);
+
   } elsif ($new->payby =~ /^(CHEK|DCHK)$/ && $new->payinfo =~ /xx/) {
     #fix for #3085 "edit of customer's routing code only surprisingly causes
     #nothing to happen...



More information about the freeside-commits mailing list