Commit 5bbc208a authored by Jasper Maes's avatar Jasper Maes

Rails5 fix passing Group objects array into for_projects_and_groups milestone scope

parent daca5cab
...@@ -17,12 +17,12 @@ module Boards ...@@ -17,12 +17,12 @@ module Boards
finder_params = finder_params =
if parent.is_a?(Group) if parent.is_a?(Group)
{ {
group_ids: parent.self_and_ancestors group_ids: parent.self_and_ancestors_ids
} }
else else
{ {
project_ids: [parent.id], project_ids: [parent.id],
group_ids: parent.group&.self_and_ancestors group_ids: parent.group&.self_and_ancestors_ids
} }
end 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