Bug 365064: describecomponents.cgi returns no data when no product name is given - Patch by Fr��d��ric Buclin <LpSolit@gmail.com> r/a=justdave

This commit is contained in:
lpsolit%gmail.com 2006-12-27 07:37:20 +00:00
parent ca41a63f26
commit 467e5394e2

View File

@ -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