]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 320289: [PostgreSQL] Ordering a buglist by "Actual Hours" fails - Patch by Frédér...
authorlpsolit%gmail.com <>
Mon, 19 Dec 2005 03:29:20 +0000 (03:29 +0000)
committerlpsolit%gmail.com <>
Mon, 19 Dec 2005 03:29:20 +0000 (03:29 +0000)
Bugzilla/Search.pm

index d9988a30abe9af0ef2307b152a59f9ad4e080cbe..2233ed514b969f80b88e79d115a7ca4112d15d0d 100644 (file)
@@ -1379,7 +1379,7 @@ sub init {
     foreach my $field (@fields, @orderby) {
         next if ($field =~ /(AVG|SUM|COUNT|MAX|MIN|VARIANCE)\s*\(/i ||
                  $field =~ /^\d+$/ || $field eq "bugs.bug_id" ||
-                 $field =~ /^relevance/);
+                 $field =~ /^(relevance|actual_time|percentage_complete)/);
         # The structure of fields is of the form:
         # [foo AS] {bar | bar.baz} [ASC | DESC]
         # Only the mandatory part bar OR bar.baz is of interest