Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-28 05:43:31 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-11-01 04:27:49 +0300
commitbc7895fff80a038ff14e7319ef303e58474d161c (patch)
treedcfbddb6993b66b74f4f7fffc61f8b073f32aaa3 /app/finders
parent2525e55ec9bdd4b3a9e3284c71fde978cab6483a (diff)
Use label subject to calculate number of issues/mrs within the group
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/labels_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/labels_finder.rb b/app/finders/labels_finder.rb
index 865f093f04a..18d1396d78b 100644
--- a/app/finders/labels_finder.rb
+++ b/app/finders/labels_finder.rb
@@ -22,7 +22,7 @@ class LabelsFinder < UnionFinder
label_ids << project.group.labels if project.group.present?
label_ids << project.labels
else
- label_ids << Label.where(group_id: projects.group_ids)
+ label_ids << Label.where(group_id: projects.group_ids.uniq)
label_ids << Label.where(project_id: projects.select(:id))
end