From a9f0a3f34b1cc8a7d6c969c69b3b7c849fae22a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Sat, 10 Mar 2012 15:56:55 +0100 Subject: [PATCH] Bug 731163: Search.pm can use undefined alias in ORDER BY clause r=dkl a=LpSolit --- Bugzilla/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index cc74afb429..a0b11dde46 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -799,7 +799,7 @@ sub _extra_columns { my ($self) = @_; # Everything that's going to be in the ORDER BY must also be # in the SELECT. - $self->{extra_columns} ||= [ $self->_valid_order_columns ]; + push(@{ $self->{extra_columns} }, $self->_valid_order_columns); return @{ $self->{extra_columns} }; } -- 2.47.2