aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-08-09 20:17:44 +0000
committerlpsolit%gmail.com <>2009-08-09 20:17:44 +0000
commitd5ddb4373679d584ffa5524c854ce5fa3261cee8 (patch)
tree2d6264bb85c1d47bb84c769275010aa3ad38b901 /request.cgi
parentBug 471620: USER_PASSWORD_MAX_LENGTH is no longer needed - Patch by FrédÃ... (diff)
downloadbugzilla-d5ddb4373679d584ffa5524c854ce5fa3261cee8.tar.gz
bugzilla-d5ddb4373679d584ffa5524c854ce5fa3261cee8.tar.bz2
bugzilla-d5ddb4373679d584ffa5524c854ce5fa3261cee8.zip
Bug 365259: The "Product" select menu in request.cgi doesn't group products by classifications - Patch by Frédéric Buclin <LpSolit@gmail.com> r=dkl a=LpSolit
Diffstat (limited to 'request.cgi')
-rwxr-xr-xrequest.cgi6
1 files changed, 2 insertions, 4 deletions
diff --git a/request.cgi b/request.cgi
index 5dfb76ddb..594ed1833 100755
--- a/request.cgi
+++ b/request.cgi
@@ -73,12 +73,11 @@ else {
my @types = ('all', @$flagtypes);
my $vars = {};
- $vars->{'products'} = $user->get_selectable_products;
$vars->{'types'} = \@types;
$vars->{'requests'} = {};
my %components;
- foreach my $prod (@{$vars->{'products'}}) {
+ foreach my $prod (@{$user->get_selectable_products}) {
foreach my $comp (@{$prod->components}) {
$components{$comp->name} = 1;
}
@@ -303,14 +302,13 @@ sub queue {
my $flagtypes = get_flag_types();
push(@types, @$flagtypes);
- $vars->{'products'} = $user->get_selectable_products;
$vars->{'excluded_columns'} = \@excluded_columns;
$vars->{'group_field'} = $form_group;
$vars->{'requests'} = \@requests;
$vars->{'types'} = \@types;
my %components;
- foreach my $prod (@{$vars->{'products'}}) {
+ foreach my $prod (@{$user->get_selectable_products}) {
foreach my $comp (@{$prod->components}) {
$components{$comp->name} = 1;
}