diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-01-10 16:41:30 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-01-10 16:41:30 -0800 |
commit | 480474201737a3ea4dc91e4ac6604a4d73300f53 (patch) | |
tree | 5e665906912c7b2e7f7be9b3a240da39465f0c94 /httemplate/view/cust_main/notes | |
parent | cf66b5b46f5af76dbb6f6fe20b1d3fecc7c88ca2 (diff) |
fix direct use of customer_view_emails pref, RT#78617
Diffstat (limited to 'httemplate/view/cust_main/notes')
-rw-r--r-- | httemplate/view/cust_main/notes/email.html | 5 |
1 files changed, 4 insertions, 1 deletions
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'; |