]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 2007801: The component field in request.cgi was empty unless action=queue is... 5.2
authorDave Miller <justdave@bugzilla.org>
Mon, 27 Jul 2026 04:16:04 +0000 (00:16 -0400)
committerGitHub <noreply@github.com>
Mon, 27 Jul 2026 04:16:04 +0000 (00:16 -0400)
Co-authored-by: Frédéric Buclin <LpSolit@gmail.com>
request.cgi

index a95ac5399e5141822b51f2f30d7b1c33fd9e72c6..ca7387459717cc4f390a4a905bf44f8e792a2383 100755 (executable)
@@ -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;
     }