From f60cb042dc62baeb694ccabffd28f9bfff189e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Sun, 26 Jul 2026 17:25:13 -0400 Subject: [PATCH] Bug 2007801: The component field in request.cgi was empty unless action=queue is part of the URL --- request.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/request.cgi b/request.cgi index 39bf1f571..4e7ec55aa 100755 --- a/request.cgi +++ b/request.cgi @@ -58,14 +58,16 @@ if ($action eq 'queue') { } else { my $flagtypes = get_flag_types(); - my @types = ('all', @$flagtypes); + 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; }