]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 553255: Make config.cgi use Bugzilla::Product::preload, for a small
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Thu, 18 Mar 2010 13:17:35 +0000 (06:17 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Thu, 18 Mar 2010 13:17:35 +0000 (06:17 -0700)
performance improvement
r=gerv, a=mkanat

config.cgi

index 282b959571a32f36caa34fe96d9643ca61721df2..4fcf2b1f9a3deb2b0e2958b0811303da354eb140 100755 (executable)
@@ -34,6 +34,7 @@ use Bugzilla;
 use Bugzilla::Constants;
 use Bugzilla::Error;
 use Bugzilla::Keyword;
+use Bugzilla::Product;
 use Bugzilla::Status;
 use Bugzilla::Field;
 
@@ -77,6 +78,8 @@ if ($cgi->param('product')) {
     $vars->{'products'} = $user->get_selectable_products;
 }
 
+Bugzilla::Product::preload($vars->{'products'});
+
 # Create separate lists of open versus resolved statuses.  This should really
 # be made part of the configuration.
 my @open_status;