diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb index bc48611f7a6..f7240edd618 100644 --- a/app/finders/issuable_finder.rb +++ b/app/finders/issuable_finder.rb @@ -126,7 +126,7 @@ class IssuableFinder @labels = Label.where(title: label_names) if projects - @labels = labels.where(project: projects) + @labels = @labels.where(project: projects) end else @labels = Label.none