From efa1199a1131ced709bf4ec1f38386104b14e0fa Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Tue, 21 Aug 2012 00:51:06 +0200 Subject: Bug 779747: The "Browse" link in the page header/footer doesn't sort products by classification r=dkl a=LpSolit --- describecomponents.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'describecomponents.cgi') diff --git a/describecomponents.cgi b/describecomponents.cgi index 33976a385..3a70f29bb 100755 --- a/describecomponents.cgi +++ b/describecomponents.cgi @@ -13,6 +13,7 @@ use Bugzilla; use Bugzilla::Constants; use Bugzilla::Util; use Bugzilla::Error; +use Bugzilla::Classification; use Bugzilla::Product; my $user = Bugzilla->login(); @@ -40,7 +41,7 @@ unless ($product && $user->can_access_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->{'classifications'} = [{object => undef, products => \@products}]; + $vars->{'classifications'} = sort_products_by_classification(\@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 -- cgit v1.2.3-24-g4f1b