[freeside-commits] branch FREESIDE_4_BRANCH updated. 0497c3eef8d7fb384ec09cf2ef82d3324faef89c

Ivan ivan at 420.am
Wed Dec 28 12:48:18 PST 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  0497c3eef8d7fb384ec09cf2ef82d3324faef89c (commit)
      from  5e05db4292f9fb330b732367edaace91d1098d8e (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 0497c3eef8d7fb384ec09cf2ef82d3324faef89c
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Dec 28 12:48:18 2016 -0800

    default payby for new installs, regression from 3.x, RT#73853

diff --git a/httemplate/view/cust_main/menu.html b/httemplate/view/cust_main/menu.html
index 6f177c3..4d35a02 100644
--- a/httemplate/view/cust_main/menu.html
+++ b/httemplate/view/cust_main/menu.html
@@ -83,7 +83,10 @@ my $custnum = $cust_main->custnum;
 my $curuser = $FS::CurrentUser::CurrentUser;
 my $conf = FS::Conf->new;
 
-my %payby = map { $_ => 1 } $conf->config('payby');
+my @payby = grep /\w/, $conf->config('payby');
+ at payby = (qw( CARD DCRD CHEK DCHK ))
+  unless @payby;
+my %payby = map { $_ => 1 } @payby;
 
 # cached for conditions, to avoid looking it up twice
 my $invoicing_list_emailonly = $cust_main->invoicing_list_emailonly;

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

Summary of changes:
 httemplate/view/cust_main/menu.html |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list