Skip to content

Commit

Permalink
Bug 1260458 - search failing for users who are not members of the ins…
Browse files Browse the repository at this point in the history
…ider group (DBD::mysql::db selectcol_arrayref failed: You have an error in your SQL syntax)
  • Loading branch information
dklawren committed Apr 7, 2016
1 parent 236c0b9 commit ea817b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Bugzilla/Search.pm
Expand Up @@ -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 = {
Expand Down

0 comments on commit ea817b4

Please sign in to comment.