projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf66b5b
)
fix direct use of customer_view_emails pref, RT#78617
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 11 Jan 2018 00:41:30 +0000
(16:41 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 11 Jan 2018 00:41:30 +0000
(16:41 -0800)
httemplate/view/cust_main/notes/email.html
patch
|
blob
|
history
diff --git
a/httemplate/view/cust_main/notes/email.html
b/httemplate/view/cust_main/notes/email.html
index
41c5b8a
..
9e217e4
100644
(file)
--- 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';