From: Dave Miller Date: Mon, 27 Jul 2026 04:16:04 +0000 (-0400) Subject: Bug 2007801: The component field in request.cgi was empty unless action=queue is... X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;ds=sidebyside;p=thirdparty%2Fbugzilla.git Bug 2007801: The component field in request.cgi was empty unless action=queue is part of the URL (#234) Co-authored-by: Frédéric Buclin --- diff --git a/request.cgi b/request.cgi index a95ac5399..ca7387459 100755 --- a/request.cgi +++ b/request.cgi @@ -55,13 +55,15 @@ if ($action eq 'queue') { else { my $flagtypes = get_flag_types(); my @types = ('all', @$flagtypes); + my $products = $user->get_selectable_products; my $vars = {}; $vars->{'types'} = \@types; $vars->{'requests'} = {}; + $vars->{'products'} = $products; my %components; - foreach my $prod (@{$user->get_selectable_products}) { + foreach my $prod (@$products) { foreach my $comp (@{$prod->components}) { $components{$comp->name} = 1; }