diff options
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r-- | Bugzilla/Search.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index b12d714f9..8cefc8cab 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -1369,7 +1369,7 @@ sub init { } } - foreach my $field (@fields) { + foreach my $field (@fields, @orderby) { next if ($field =~ /(AVG|SUM|COUNT|MAX|MIN|VARIANCE)\s*\(/i || $field =~ /^\d+$/ || $field eq "bugs.bug_id"); if ($field =~ /.*AS\s+(\w+)$/i) { |