RT# 80513 Selfservice not reflecting change to payinfo
authorMitch Jackson <mitch@freeside.biz>
Tue, 12 Jun 2018 01:31:59 +0000 (20:31 -0500)
committerMitch Jackson <mitch@freeside.biz>
Tue, 12 Jun 2018 01:31:59 +0000 (20:31 -0500)
FS/FS/ClientAPI/MyAccount.pm

index 60a70fd..263b311 100644 (file)
@@ -1742,6 +1742,7 @@ sub update_payby {
     next unless exists($p->{$field});
     $cust_payby->set($field,$p->{$field});
   }
+  $cust_payby->set( 'paymask' => $cust_payby->mask_payinfo );
 
   # Update column if given a value, and the given value wasn't
   # the value generated by $cust_main->masked($column);