summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-03-27 11:08:07 +0100
committermkanat%bugzilla.org <>2008-03-27 11:08:07 +0100
commit76db56635e4277804982f04b3828a8cd88093963 (patch)
treed121c6e949e0d3e8381b3f97ea1f1ff37c647b87 /query.cgi
parent9345e477eccc933af13d7181cdf1a83c6a3deaa3 (diff)
downloadbugzilla-76db56635e4277804982f04b3828a8cd88093963.tar.gz
bugzilla-76db56635e4277804982f04b3828a8cd88093963.tar.xz
Bug 372795: Implement Bugzilla::Product::preload() to speed up query.cgi when there are many products
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/query.cgi b/query.cgi
index dbdf69be9..5998c31ab 100755
--- a/query.cgi
+++ b/query.cgi
@@ -189,6 +189,7 @@ if (!scalar(@{$default{'chfieldto'}}) || $default{'chfieldto'}->[0] eq "") {
# don't have access to. Remove them from the list.
my @selectable_products = sort {lc($a->name) cmp lc($b->name)}
@{$user->get_selectable_products};
+Bugzilla::Product::preload(\@selectable_products);
# Create the component, version and milestone lists.
my %components;