[freeside-commits] branch FREESIDE_4_BRANCH updated. 44cff6ff89f50eb856dee0adb8fab6b1abd5310b

Mitch Jackson mitch at freeside.biz
Tue Jan 29 22:31:46 PST 2019


The branch, FREESIDE_4_BRANCH has been updated
       via  44cff6ff89f50eb856dee0adb8fab6b1abd5310b (commit)
      from  a415347b25229ac13fa84ed8b8e5f2f5ee14205f (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 44cff6ff89f50eb856dee0adb8fab6b1abd5310b
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 a3198611d..7d49c87e1 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -930,6 +930,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