summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-04-08 18:10:21 +0000
committerivan <ivan>2011-04-08 18:10:21 +0000
commit0d48c4d464e5ac4c03d875dd2002c86dd3071d22 (patch)
treec8bbfea6f9ad8b7602f6b1a62f2711c58c167af9
parentf5db805d56f8d7e5a68cd4a7a77e885767f049f4 (diff)
fix edits of customers with tokenized cards, RT#12353
-rwxr-xr-xhttemplate/edit/process/cust_main.cgi10
1 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi
index 3fe7c3987..65df2671e 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -254,9 +254,15 @@ if ( $new->custnum eq '' ) {
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/) {
+
+ } elsif ( $new->payby =~ /^(CHEK|DCHK)$/ && $new->payinfo =~ /xx/ ) {
#fix for #3085 "edit of customer's routing code only surprisingly causes
#nothing to happen...
# this probably won't do the right thing when we don't have the