From a9f0a3f34b1cc8a7d6c969c69b3b7c849fae22a1 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Sat, 10 Mar 2012 15:56:55 +0100 Subject: 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 cc74afb42..a0b11dde4 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} }; } -- cgit v1.2.3-24-g4f1b