]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1260458 - search failing for users who are not members of the insider group ...
authorDavid Lawrence <dkl@mozilla.com>
Thu, 7 Apr 2016 20:20:47 +0000 (20:20 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Thu, 7 Apr 2016 20:20:47 +0000 (20:20 +0000)
Bugzilla/Search.pm

index ff0db1baae651a5bc8a8ebfa4ad81e4eacc10aaf..b85e44985858c520da8aaa5927b94052b867f8d3 100644 (file)
@@ -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 = {