projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f5db805
)
fix edits of customers with tokenized cards, RT#12353
author
ivan
<ivan>
Fri, 8 Apr 2011 18:10:21 +0000
(18:10 +0000)
committer
ivan
<ivan>
Fri, 8 Apr 2011 18:10:21 +0000
(18:10 +0000)
httemplate/edit/process/cust_main.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/cust_main.cgi
b/httemplate/edit/process/cust_main.cgi
index
3fe7c39
..
65df267
100755
(executable)
--- 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->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);
$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
#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