diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-10 15:56:55 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-10 15:56:55 +0100 |
commit | a9f0a3f34b1cc8a7d6c969c69b3b7c849fae22a1 (patch) | |
tree | 0927e0cf3983ecc479730a2ccd9c977c67045c57 | |
parent | 19e709e51b9be52b90bc16f27eaf323be475fe69 (diff) | |
download | bugzilla-a9f0a3f34b1cc8a7d6c969c69b3b7c849fae22a1.tar.gz bugzilla-a9f0a3f34b1cc8a7d6c969c69b3b7c849fae22a1.tar.xz |
Bug 731163: Search.pm can use undefined alias in ORDER BY clause
r=dkl a=LpSolit
-rw-r--r-- | Bugzilla/Search.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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} }; } |