X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fnotes%2Femail.html;h=9e217e4f023abf93ed0164877ffe01b990172fbc;hb=HEAD;hp=41c5b8ad49b759da9f50510a29b7aaf43ca5f3bc;hpb=4dc075fc38008d1c6cbe9b88b2bdb32bdc92adbf;p=freeside.git 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';