diff options
author | David Lawrence <dkl@mozilla.com> | 2016-04-07 22:20:47 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2016-04-07 22:20:47 +0200 |
commit | ea817b4c14de659617a9424dfbe7fb2591ce5349 (patch) | |
tree | 5e684a734abeea06f1468ce1520c225fc8463789 | |
parent | 236c0b9af4e80824a57321e20bd005e3916c1d9d (diff) | |
download | bugzilla-ea817b4c14de659617a9424dfbe7fb2591ce5349.tar.gz bugzilla-ea817b4c14de659617a9424dfbe7fb2591ce5349.tar.xz |
Bug 1260458 - search failing for users who are not members of the insider group (DBD::mysql::db selectcol_arrayref failed: You have an error in your SQL syntax)
-rw-r--r-- | Bugzilla/Search.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index ff0db1baa..b85e44985 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -2654,7 +2654,8 @@ sub _long_desc_nonchanged { # If the user is not part of the insiders group, they cannot see # private comments if (!$self->_user->is_insider) { - $join_args->{term} .= " AND $table.isprivate = 0"; + $join_args->{term} .= ($join_args->{term} ? " AND " : "") + . "$table.isprivate = 0"; } my $join = { |