]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 283725: Platform, OS, Priority and Severity field dropdowns are not sorted correctly
authormkanat%kerio.com <>
Sun, 27 Feb 2005 09:11:22 +0000 (09:11 +0000)
committermkanat%kerio.com <>
Sun, 27 Feb 2005 09:11:22 +0000 (09:11 +0000)
Patch By Teemu Mannermaa <wicked@etlicon.fi> r=mkanat, a=justdave

globals.pl

index 4fe0c2783398c6589da10744816161bac079cefb..721f3bc4317a0bb7951b70ff8b0aeb4f0ff10482 100644 (file)
@@ -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;
 }