From: ivan Date: Thu, 1 Nov 2001 00:16:24 +0000 (+0000) Subject: hit the database slightly less. this page still takes forever with lots of X-Git-Tag: freeside_1_4_0pre11~239 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=50c494e839fc0dd73ff986d04c54a8d508f5ede0;p=freeside.git hit the database slightly less. this page still takes forever with lots of customers. --- diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index a11892101..a52321de3 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -1,5 +1,5 @@ <% -# +# use strict; #use vars qw( $conf %ncancelled_pkgs %all_pkgs $cgi @cust_main $sortby ); @@ -172,9 +172,9 @@ END my($pkg) = $_->part_pkg->pkg; my $comment = $_->part_pkg->comment; my($pkgview) = popurl(2). "/view/cust_pkg.cgi?$pkgnum"; - #my(@cust_svc) = shift @lol_cust_svc; - my(@cust_svc) = qsearch( 'cust_svc', { 'pkgnum' => $_->pkgnum } ); - my($rowspan) = scalar(@cust_svc) || 1; + my @cust_svc = @{shift @lol_cust_svc}; + #my(@cust_svc) = qsearch( 'cust_svc', { 'pkgnum' => $_->pkgnum } ); + my $rowspan = scalar(@cust_svc) || 1; print $n1, qq!$pkg - $comment!; my($n2)='';