summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorJoren De Groof <git@jorendegroof.be>2017-03-31 11:38:40 +0200
committerJoren De Groof <git@jorendegroof.be>2017-04-03 18:36:51 +0200
commitd663b8de246a4307a283b464ab4b5344463d30c3 (patch)
treec0d739f9b3f325f0f95784559572501b12f44966 /lib/api
parent2faf955c241ce7e99111f8fd0cae2e7ab6167e5a (diff)
downloadgitlab-ce-d663b8de246a4307a283b464ab4b5344463d30c3.tar.gz
Fixes milestone/merge_request API endpoint to really scope the results
The MergeRequestsFinder uses the milestone_title instead of the milestone_id
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/milestones.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/milestones.rb b/lib/api/milestones.rb
index e7ab82f08db..a3ea619a2fb 100644
--- a/lib/api/milestones.rb
+++ b/lib/api/milestones.rb
@@ -139,7 +139,7 @@ module API
finder_params = {
project_id: user_project.id,
- milestone_id: milestone.id,
+ milestone_title: milestone.title,
sort: 'position_asc'
}