summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-03-10 10:01:07 -0800
committerIvan Kohler <ivan@freeside.biz>2017-03-10 10:01:07 -0800
commit56cca7cecebae066e066561ca2c086cfa82f40fe (patch)
tree800df1af171867b3ac2955ba62f83dd7c5f3c137
parent01f9e027252b87d21c76b8dad737a761e61bb1f7 (diff)
fix paymask removal when editing a customer with a tokenized card, RT#74900
-rwxr-xr-xhttemplate/edit/process/cust_main.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi
index 4b8993980..a86819f4b 100755
--- a/httemplate/edit/process/cust_main.cgi
+++ b/httemplate/edit/process/cust_main.cgi
@@ -330,6 +330,7 @@ if ( $new->custnum eq '' or $duplicate_of ) {
)
{
$new->payinfo($old->payinfo);
+ $new->paymask($old->paymask) if ! $new->paymask || $new->paymask =~ /^N\/A/;
} elsif ( $new->payby =~ /^(CHEK|DCHK)$/ && $new->payinfo =~ /xx/ ) {
#fix for #3085 "edit of customer's routing code only surprisingly causes