diff options
author | jocuri%softhome.net <> | 2004-12-05 23:18:59 +0100 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-12-05 23:18:59 +0100 |
commit | 768b72850d3f3292506b1ddd1bc7ced794b32883 (patch) | |
tree | c216ecff43d16dd5edaa4d356fdb64abe28ca88d | |
parent | 00596bee6943f617da1f8e020ad49581db55fc4b (diff) | |
download | bugzilla-768b72850d3f3292506b1ddd1bc7ced794b32883.tar.gz bugzilla-768b72850d3f3292506b1ddd1bc7ced794b32883.tar.xz |
Patch for bug 271048: Remove confusion when sorting classifications by modifying GetSelectableClassifications in order to always return a sorted list; patch by Albert Ting <altlst@sonic.net>, r=justdave, a=justdave.
-rw-r--r-- | globals.pl | 2 | ||||
-rwxr-xr-x | query.cgi | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/globals.pl b/globals.pl index 829417e44..d1e751bb0 100644 --- a/globals.pl +++ b/globals.pl @@ -664,7 +664,7 @@ sub GetSelectableProductHash { sub GetSelectableClassifications { my @selectable_classes = (); - foreach my $c (keys %::classdesc) { + foreach my $c (sort keys %::classdesc) { if ( scalar(GetSelectableProducts(0,$c)) > 0) { push(@selectable_classes,$c); } @@ -280,7 +280,7 @@ $vars->{'product'} = \@products; if (Param('useclassification')) { my @classifications = (); - foreach my $c (sort(GetSelectableClassifications())) { + foreach my $c (GetSelectableClassifications()) { # Create hash to hold attributes for each classification. my %classification = ( 'name' => $c, |