Commit f401f3b6 authored by Yorick Peterse's avatar Yorick Peterse

Merge branch 'rails5-fix-board-milestone-finder' into 'master'

Rails5 fix passing Group objects array into for_projects_and_groups milestone scope

See merge request gitlab-org/gitlab-ee!6873
parents 9aa7a3b5 5bbc208a
......@@ -17,12 +17,12 @@ module Boards
finder_params =
if parent.is_a?(Group)
{
group_ids: parent.self_and_ancestors
group_ids: parent.self_and_ancestors_ids
}
else
{
project_ids: [parent.id],
group_ids: parent.group&.self_and_ancestors
group_ids: parent.group&.self_and_ancestors_ids
}
end
......
---
title: Rails5 fix passing Group objects array into for_projects_and_groups milestone
scope
merge_request: 6873
author: Jasper Maes
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment