diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-09-26 14:12:12 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-04 22:49:42 +0200 |
commit | b92e7103fcced2d62000ed382848219016484f7b (patch) | |
tree | 7da435862146503eda545e4f4942884641341628 /app/finders | |
parent | ac0b104ae4968adaed7b94db76c0ac86badb6d6b (diff) | |
download | gitlab-ce-b92e7103fcced2d62000ed382848219016484f7b.tar.gz |
Fix nesting bug when rendering children of a shared subgroup
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/group_descendants_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/group_descendants_finder.rb b/app/finders/group_descendants_finder.rb index 07178a026e8..4ed9c0ea39a 100644 --- a/app/finders/group_descendants_finder.rb +++ b/app/finders/group_descendants_finder.rb @@ -64,7 +64,7 @@ class GroupDescendantsFinder subgroups_with_counts = ancestors_for_project_search.with_route.select(group_selects) | subgroups_with_counts end - @children = subgroups_with_counts + projects.preload(:route) + @children = subgroups_with_counts + projects.with_route end def direct_child_groups |