summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-02-09 22:39:32 -0800
committerIvan Kohler <ivan@freeside.biz>2016-03-21 13:56:43 -0700
commit49c065a38b0bae0956abf0c791062f4c60ac5b51 (patch)
treece8eb0ab212d1a74b57385d2772d06f08088d815 /httemplate
parent83ae7beac0d7dd6130c47327908afc33f31e725a (diff)
optimize Reports->Customers->List Customers, RT#20173
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/search/cust_main.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index dde6dbdec..411ff16e1 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -236,8 +236,8 @@
% my $pkgnum = $_->pkgnum;
% my $part_pkg = $_->part_pkg;
%
-% my $pkg_comment = $part_pkg->pkg_comment(nopkgpart => 1);
-% my $show = $curuser->default_customer_view =~ /^(jumbo|packages)$/
+% my $pkg_comment = $part_pkg->pkg_comment( nopkgpart=>1 );
+% my $show = $default_customer_view =~ /^(jumbo|packages)$/
% ? ''
% : ';show=packages';
% my $frag = "cust_pkg$pkgnum"; #hack for IE ignoring real #fragment
@@ -320,6 +320,8 @@ my $maxrecords = $conf->config('maxsearchrecordsperpage');
# summarize more than this many services of the same svcpart
my $large_pkg_size = $conf->config('cust_pkg-large_pkg_size') || 0;
+my $default_customer_view = $curuser->default_customer_view;
+
my $limit = '';
$limit .= "LIMIT $maxrecords" if $maxrecords;