summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-08-09 17:32:21 -0700
committerIvan Kohler <ivan@freeside.biz>2014-08-09 17:32:21 -0700
commitb4dd79750936de7aa6998cea77f9091cdbd67392 (patch)
tree7be5008aa7cd925fd0ce3f8b512f5a23dbc46d1e
parentc9a033f478e3bcd58d75d12bc9b5ffbeaef663cd (diff)
optimize package view with tons of packages, RT#28526
-rw-r--r--httemplate/view/cust_main/packages/location.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/packages/location.html b/httemplate/view/cust_main/packages/location.html
index 871bfcbe7..c5ef10ee4 100644
--- a/httemplate/view/cust_main/packages/location.html
+++ b/httemplate/view/cust_main/packages/location.html
@@ -74,7 +74,7 @@ my $countrydefault = $opt{'countrydefault'} || 'US';
my $statedefault = $opt{'statedefault'}
|| ($countrydefault eq 'US' ? 'CA' : '');
-my $loc = $cust_pkg->cust_location_or_main;
+my $loc = $cust_pkg->cust_location_or_main('_cache'=>$opt{cust_location_cache});
# dubious--they should all have a location now
my $default = $cust_pkg->locationnum == $opt{'cust_main'}->ship_locationnum;