[freeside-commits] branch FREESIDE_3_BRANCH updated. 480474201737a3ea4dc91e4ac6604a4d73300f53

Ivan Kohler ivan at freeside.biz
Wed Jan 10 16:41:31 PST 2018


The branch, FREESIDE_3_BRANCH has been updated
       via  480474201737a3ea4dc91e4ac6604a4d73300f53 (commit)
      from  cf66b5b46f5af76dbb6f6fe20b1d3fecc7c88ca2 (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 480474201737a3ea4dc91e4ac6604a4d73300f53
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Jan 10 16:41:30 2018 -0800

    fix direct use of customer_view_emails pref, RT#78617

diff --git a/httemplate/view/cust_main/notes/email.html b/httemplate/view/cust_main/notes/email.html
index 41c5b8ad4..9e217e4f0 100644
--- a/httemplate/view/cust_main/notes/email.html
+++ b/httemplate/view/cust_main/notes/email.html
@@ -61,7 +61,10 @@ my $cust_main = $opt{'cust_main'}
 my $custnum = $cust_main->custnum;
 
 my $where = "WHERE cust_msg.custnum = $custnum";
-my $maxrecords = $curuser->option('customer_view_emails') || 10;
+my $maxrecords = 10;
+if ( $curuser->option('customer_view_emails') =~ /^\s*(\d+)\s*$/ ) {
+  $maxrecords = $1;
+}
 
 my $order_by = '_date DESC';
 

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

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




More information about the freeside-commits mailing list