From 61b744aad6545156c542e367671843c9a6245ec3 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Thu, 18 Mar 2010 13:33:44 +0000 Subject: [PATCH] Bug 553255: Make config.cgi use Bugzilla::Product::preload, for a small performance improvement r=gerv, a=mkanat git-svn-id: svn://10.0.0.236/trunk@260007 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/config.cgi | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index c986e88a331..80bc331ddc6 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -7072 \ No newline at end of file +7073 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/config.cgi b/mozilla/webtools/bugzilla/config.cgi index 22e1dc78a7f..658f04d390a 100755 --- a/mozilla/webtools/bugzilla/config.cgi +++ b/mozilla/webtools/bugzilla/config.cgi @@ -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;