diff options
Diffstat (limited to 'describecomponents.cgi')
-rwxr-xr-x | describecomponents.cgi | 3 |
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 |