summaryrefslogtreecommitdiffstats
path: root/describecomponents.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-08-21 00:51:06 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-08-21 00:51:06 +0200
commitefa1199a1131ced709bf4ec1f38386104b14e0fa (patch)
tree6a393f202c9ca835b1c40e304b9757bbde1fa958 /describecomponents.cgi
parent5a68f0998ca5015c621787b2c8982f2cea03c26d (diff)
downloadbugzilla-efa1199a1131ced709bf4ec1f38386104b14e0fa.tar.gz
bugzilla-efa1199a1131ced709bf4ec1f38386104b14e0fa.tar.xz
Bug 779747: The "Browse" link in the page header/footer doesn't sort products by classification
r=dkl a=LpSolit
Diffstat (limited to 'describecomponents.cgi')
-rwxr-xr-xdescribecomponents.cgi3
1 files changed, 2 insertions, 1 deletions
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