From: lpsolit%gmail.com <> Date: Mon, 19 Dec 2005 03:24:32 +0000 (+0000) Subject: Bug 320289: [PostgreSQL] Ordering a buglist by "Actual Hours" fails - Patch by Frédér... X-Git-Tag: bugzilla-2.22rc1~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7123d34c497099b4228cfe49b547b6c725875ced;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 5158091ad0..9b6c5bca7f 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -1423,7 +1423,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