diff options
author | ivan <ivan> | 2011-04-08 18:10:22 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-04-08 18:10:22 +0000 |
commit | 38a9be49dcca77be7267a47664e3eb5b525b7831 (patch) | |
tree | 2dc4b20f99c6bc729c989c2bd7b6a7619c37162f /httemplate/edit | |
parent | 6c78fa4d065e8fcd80cfc0f0720df5a1ef9781e6 (diff) |
fix edits of customers with tokenized cards, RT#12353
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-x | httemplate/edit/process/cust_main.cgi | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi index 24cecea64..aa5579b2d 100755 --- a/httemplate/edit/process/cust_main.cgi +++ b/httemplate/edit/process/cust_main.cgi @@ -237,9 +237,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 |