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
This commit is contained in:
mkanat%bugzilla.org
2010-03-18 13:33:44 +00:00
parent 46bfbf2dd3
commit 61b744aad6
2 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
7072
7073

View File

@@ -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;