[freeside-commits] branch master updated. 6927d8ec706ab562a53690527fce710ad356539f

Mitch Jackson mitch at freeside.biz
Tue Jan 29 22:28:09 PST 2019


The branch, master has been updated
       via  6927d8ec706ab562a53690527fce710ad356539f (commit)
      from  6702f62122aeca25cedd635914a9bd9d1d5a35eb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6927d8ec706ab562a53690527fce710ad356539f
Author: Mitch Jackson <mitch at freeside.biz>
Date:   Wed Jan 30 01:27:44 2019 -0500

    RT# 82010 Fix bug where selfservice payment form may not appear

diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index de35c5197..c303ae686 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -928,6 +928,12 @@ sub payment_info {
   $return{credit_card_surcharge_percentage} = $conf->config('credit-card-surcharge-percentage', $cust_main->agentnum);
   $return{credit_card_surcharge_flatfee} = $conf->config('credit-card-surcharge-flatfee', $cust_main->agentnum);
 
+  # A value for 'payby' must be defined in %return
+  $return{payby} = $return{paybys}->[0]
+    if !$return{payby}
+    && ref $return{paybys}
+    && scalar @{ $return{paybys} };
+
   return { 'error' => '',
            %return,
          };

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/ClientAPI/MyAccount.pm | 6 ++++++
 1 file changed, 6 insertions(+)




More information about the freeside-commits mailing list