Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5bbc208a
Commit
5bbc208a
authored
Aug 10, 2018
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rails5 fix passing Group objects array into for_projects_and_groups milestone scope
parent
daca5cab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ee/app/finders/boards/milestones_finder.rb
ee/app/finders/boards/milestones_finder.rb
+2
-2
ee/changelogs/unreleased/rails5-fix-board-milestone-finder.yml
...angelogs/unreleased/rails5-fix-board-milestone-finder.yml
+6
-0
No files found.
ee/app/finders/boards/milestones_finder.rb
View file @
5bbc208a
...
@@ -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
...
...
ee/changelogs/unreleased/rails5-fix-board-milestone-finder.yml
0 → 100644
View file @
5bbc208a
---
title
:
Rails5 fix passing Group objects array into for_projects_and_groups milestone
scope
merge_request
:
6873
author
:
Jasper Maes
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment