[freeside-commits] branch master updated. bc1bbd506cfa5f005002fef01d8b0f8961f536eb

Mark Wells mark at 420.am
Tue Apr 9 17:32:23 PDT 2013


The branch, master has been updated
       via  bc1bbd506cfa5f005002fef01d8b0f8961f536eb (commit)
      from  6636a4ed5401d2915efb9aabe5345c7ad70f579e (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 bc1bbd506cfa5f005002fef01d8b0f8961f536eb
Author: Mark Wells <mark at freeside.biz>
Date:   Tue Apr 9 17:31:54 2013 -0700

    avoid error when there is no payment history, #19698

diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html
index 235b513..915be49 100644
--- a/httemplate/view/cust_main/payment_history.html
+++ b/httemplate/view/cust_main/payment_history.html
@@ -536,7 +536,7 @@ foreach my $item (@history) {
   }
   $i++;
 }
-if ( $history[-1]->{'hide'} ) {
+if ( @history and $history[-1]->{'hide'} ) {
   # then everything is hidden
   $history[-1]->{'balance_forward'} = 1;
 }

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

Summary of changes:
 httemplate/view/cust_main/payment_history.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list