Commit a9f0a3f3 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 731163: Search.pm can use undefined alias in ORDER BY clause

r=dkl a=LpSolit
parent 19e709e5
......@@ -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} };
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment