]> 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:16:44 +0000 (06:16 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Thu, 18 Mar 2010 13:16:44 +0000 (06:16 -0700)
performance improvement
r=gerv, a=mkanat

config.cgi

index 22e1dc78a7fd9ab39eabf5c425b5bcaf88727e21..658f04d390aa15bbe95820f13a17ea9b443089a2 100755 (executable)
@@ -35,8 +35,10 @@ use Bugzilla;
 use Bugzilla::Constants;
 use Bugzilla::Error;
 use Bugzilla::Keyword;
+use Bugzilla::Product;
 use Bugzilla::Status;
 use Bugzilla::Field;
+
 use Digest::MD5 qw(md5_base64);
 
 my $user = Bugzilla->login(LOGIN_OPTIONAL);
@@ -79,6 +81,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;