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
This commit is contained in:
mkanat%kerio.com 2005-07-28 06:19:13 +00:00
Родитель 7e3b3aa71e
Коммит 12d0200f66
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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.