summaryrefslogtreecommitdiff
path: root/lib/banzai
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-06-14 18:39:21 +0200
committerJasper Maes <jaspermaes.jm@gmail.com>2018-06-14 19:35:50 +0200
commit3778a136e1c573443be3aabae30397262ec74460 (patch)
tree4a7b69a3dde9a168821e980a670655b7bf340929 /lib/banzai
parent4791f77100125e24094bda3828b8d2599d3d21e9 (diff)
downloadgitlab-ce-3778a136e1c573443be3aabae30397262ec74460.tar.gz
Rails5 fix passing Group objects array into for_projects_and_groups milestone scope
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/filter/milestone_reference_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/milestone_reference_filter.rb b/lib/banzai/filter/milestone_reference_filter.rb
index 858e790005c..af8448937b3 100644
--- a/lib/banzai/filter/milestone_reference_filter.rb
+++ b/lib/banzai/filter/milestone_reference_filter.rb
@@ -65,7 +65,7 @@ module Banzai
# We don't support IID lookups for group milestones, because IIDs can
# clash between group and project milestones.
if project.group && !params[:iid]
- finder_params[:group_ids] = project.group.self_and_ancestors.select(:id)
+ finder_params[:group_ids] = project.group.self_and_ancestors_ids
end
MilestonesFinder.new(finder_params).find_by(params)