aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-07-17 06:22:32 +0000
committerlpsolit%gmail.com <>2006-07-17 06:22:32 +0000
commit6a688141978ccd79300218f48cce9a42e1ad1a91 (patch)
treed36348c98eae0300a20ce80df04de331ce9cbba9 /enter_bug.cgi
parentBug 95923: Don't let users change fields they aren't allowed to change - Patc... (diff)
downloadbugzilla-6a688141978ccd79300218f48cce9a42e1ad1a91.tar.gz
bugzilla-6a688141978ccd79300218f48cce9a42e1ad1a91.tar.bz2
bugzilla-6a688141978ccd79300218f48cce9a42e1ad1a91.zip
Bug 277377: Classifications should support sort keys - Patch by Olav Vitters <bugzilla-mozilla@bkor.dhs.org> r=LpSolit a=justdave
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 512650a7e..66f4109c7 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -79,7 +79,9 @@ if ($product_name eq '') {
$class->{$product->classification_id} ||=
new Bugzilla::Classification($product->classification_id);
}
- my @classifications = sort {lc($a->name) cmp lc($b->name)} (values %$class);
+ my @classifications = sort {$a->sortkey <=> $b->sortkey
+ || lc($a->name) cmp lc($b->name)}
+ (values %$class);
# We know there is at least one classification available,
# else we would have stopped earlier.