From: lpsolit%gmail.com <> Date: Mon, 19 Dec 2005 03:29:20 +0000 (+0000) Subject: Bug 320289: [PostgreSQL] Ordering a buglist by "Actual Hours" fails - Patch by Frédér... X-Git-Tag: bugzilla-2.20.1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5feeb810dcda1043f20dd81a4f1fd720a136fa3d;p=thirdparty%2Fbugzilla.git Bug 320289: [PostgreSQL] Ordering a buglist by "Actual Hours" fails - Patch by Frédéric Buclin r=mkanat a=justdave --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index d9988a30ab..2233ed514b 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -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