Commit 442ce6ef authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 365064: describecomponents.cgi returns no data when no product name is given…

Bug 365064: describecomponents.cgi returns no data when no product name is given - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=justdave
parent 27c4d18f
...@@ -55,7 +55,7 @@ unless ($product && $user->can_enter_product($product->name)) { ...@@ -55,7 +55,7 @@ unless ($product && $user->can_enter_product($product->name)) {
# product only, to not confuse the user with components of a # product only, to not confuse the user with components of a
# product he didn't request. # product he didn't request.
elsif (scalar(@products) > 1 || $product_name) { elsif (scalar(@products) > 1 || $product_name) {
$vars->{'products'} = \@products; $vars->{'classifications'} = [{object => undef, products => \@products}];
$vars->{'target'} = "describecomponents.cgi"; $vars->{'target'} = "describecomponents.cgi";
# If an invalid product name is given, or the user is not # If an invalid product name is given, or the user is not
# allowed to access that product, a message is displayed # allowed to access that product, a message is displayed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment