From 56cca7cecebae066e066561ca2c086cfa82f40fe Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 10 Mar 2017 10:01:07 -0800 Subject: [PATCH] fix paymask removal when editing a customer with a tokenized card, RT#74900 --- httemplate/edit/process/cust_main.cgi | 1 + 1 file changed, 1 insertion(+) 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 -- 2.11.0