summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-03-10 16:05:44 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-03-10 16:05:44 +0100
commit9b9670ae00c5a5510309ac5aaa548f630694d1e0 (patch)
tree6bd9ed83185cc630f53db7cb09366e35ac9f2162 /Bugzilla/Search.pm
parentf66445790a471afba991c7ac26f66cbcb743180f (diff)
downloadbugzilla-9b9670ae00c5a5510309ac5aaa548f630694d1e0.tar.gz
bugzilla-9b9670ae00c5a5510309ac5aaa548f630694d1e0.tar.xz
Bug 731163: Search.pm can use undefined alias in ORDER BY clause
r=dkl a=LpSolit
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 736b1af6f..89bb92f19 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -809,7 +809,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->_input_order_columns ];
+ push(@{ $self->{extra_columns} }, $self->_input_order_columns);
return @{ $self->{extra_columns} };
}