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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
afe40d5d
Commit
afe40d5d
authored
Jun 16, 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
f733d4f8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
app/services/projects/autocomplete_service.rb
app/services/projects/autocomplete_service.rb
+1
-1
changelogs/unreleased/rails5-fix-48012.yml
changelogs/unreleased/rails5-fix-48012.yml
+6
-0
No files found.
app/services/projects/autocomplete_service.rb
View file @
afe40d5d
...
...
@@ -11,7 +11,7 @@ module Projects
order:
{
due_date: :asc
,
title: :asc
}
}
finder_params
[
:group_ids
]
=
@project
.
group
.
self_and_ancestors
.
select
(
:id
)
if
@project
.
group
finder_params
[
:group_ids
]
=
@project
.
group
.
self_and_ancestors
_ids
if
@project
.
group
MilestonesFinder
.
new
(
finder_params
).
execute
.
select
([
:iid
,
:title
])
end
...
...
changelogs/unreleased/rails5-fix-48012.yml
0 → 100644
View file @
afe40d5d
---
title
:
Rails5 fix passing Group objects array into for_projects_and_groups milestone
scope
merge_request
:
19920
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