diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-28 00:43:31 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-31 23:27:49 -0200 |
commit | bc7895fff80a038ff14e7319ef303e58474d161c (patch) | |
tree | dcfbddb6993b66b74f4f7fffc61f8b073f32aaa3 /app/finders | |
parent | 2525e55ec9bdd4b3a9e3284c71fde978cab6483a (diff) | |
download | gitlab-ce-bc7895fff80a038ff14e7319ef303e58474d161c.tar.gz |
Use label subject to calculate number of issues/mrs within the group
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/labels_finder.rb | 2 |
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 |