summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-04-19 12:56:58 +0200
committerJames Lopez <james@jameslopez.es>2016-04-19 12:56:58 +0200
commit6fdde5fabd9defed06a3308da7788c9a7f4632cf (patch)
tree398ea7d1d19b4bf0ce5f3e6bc2eca252547b3a70 /app/finders
parent2234ac520b2bf35ae900641446fecceaeaff2ebb (diff)
downloadgitlab-ce-6fdde5fabd9defed06a3308da7788c9a7f4632cf.tar.gz
filter labels by including all filter titles as part of the query
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/issuable_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb
index f1df6832bf6..f8e2062d110 100644
--- a/app/finders/issuable_finder.rb
+++ b/app/finders/issuable_finder.rb
@@ -270,7 +270,7 @@ class IssuableFinder
if filter_by_no_label?
items = items.without_label
else
- items = items.with_label(label_names)
+ items = items.with_label(label_names.flatten)
if projects
items = items.where(labels: { project_id: projects })