summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-02-27 10:11:22 +0100
committermkanat%kerio.com <>2005-02-27 10:11:22 +0100
commit227cf9e129b811c24fc8a4baac5eab439d60965a (patch)
treed6b8cddb1abec82e92a220268aa9197d7b9a5ad2
parent4885c4563032a5c49faf667b03f70e9bddb939fb (diff)
downloadbugzilla-227cf9e129b811c24fc8a4baac5eab439d60965a.tar.gz
bugzilla-227cf9e129b811c24fc8a4baac5eab439d60965a.tar.xz
Bug 283725: Platform, OS, Priority and Severity field dropdowns are not sorted correctly
Patch By Teemu Mannermaa <wicked@etlicon.fi> r=mkanat, a=justdave
-rw-r--r--globals.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index 4fe0c2783..721f3bc43 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1008,7 +1008,8 @@ sub LearnAboutColumns {
sub get_legal_field_values {
my ($field) = @_;
my $dbh = Bugzilla->dbh;
- my $result_ref = $dbh->selectcol_arrayref("SELECT value FROM $field");
+ my $result_ref = $dbh->selectcol_arrayref(
+ "SELECT value FROM $field ORDER BY sortkey, value");
return @$result_ref;
}