From: lpsolit%gmail.com <> Date: Wed, 27 Dec 2006 15:37:20 +0000 (+0000) Subject: Bug 365064: describecomponents.cgi returns no data when no product name is given... X-Git-Tag: bugzilla-2.23.4~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=442ce6efd3c8b9072726531740ee8877784b071f;p=thirdparty%2Fbugzilla.git Bug 365064: describecomponents.cgi returns no data when no product name is given - Patch by Frédéric Buclin r/a=justdave --- diff --git a/describecomponents.cgi b/describecomponents.cgi index d42979d0ba..b282040c50 100755 --- a/describecomponents.cgi +++ b/describecomponents.cgi @@ -55,7 +55,7 @@ unless ($product && $user->can_enter_product($product->name)) { # product only, to not confuse the user with components of a # product he didn't request. elsif (scalar(@products) > 1 || $product_name) { - $vars->{'products'} = \@products; + $vars->{'classifications'} = [{object => undef, products => \@products}]; $vars->{'target'} = "describecomponents.cgi"; # If an invalid product name is given, or the user is not # allowed to access that product, a message is displayed