diff options
author | mkanat%kerio.com <> | 2005-07-28 15:19:13 +0200 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-07-28 15:19:13 +0200 |
commit | 966c262164d7dd68686862fa827d0dfde2132b69 (patch) | |
tree | 598c0de998639a4406baad158efc699d4bd7d767 /Bugzilla | |
parent | 10b02af4fa2bd908adc442b39ac5880b573b011c (diff) | |
download | bugzilla-966c262164d7dd68686862fa827d0dfde2132b69.tar.gz bugzilla-966c262164d7dd68686862fa827d0dfde2132b69.tar.xz |
Bug 293678: Sorting bug list by Assignee Real Name failing in latest nightly
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wurblzap, a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index e7b7739be..7e545cf46 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -1308,6 +1308,13 @@ sub init { # to other parts of the query, so we want to create it before we # write the FROM clause. foreach my $orderitem (@inputorder) { + # Some fields have 'AS' aliases. The aliases go in the ORDER BY, + # not the whole fields. + # XXX - Ideally, we would get just the aliases in @inputorder, + # and we'd never have to deal with this. + if ($orderitem =~ /\s+AS\s+(.+)$/i) { + $orderitem = $1; + } BuildOrderBy($orderitem, \@orderby); } # Now JOIN the correct tables in the FROM clause. |