summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2019-04-05 20:07:05 +0000
committerMichael Kozono <mkozono@gmail.com>2019-04-05 20:07:05 +0000
commitd793d4a7c30c7e16e43b8f4d393c393fe9e7ab3f (patch)
tree5b47c54e9f6e24efbe8c416a437f8adb413efa3d /lib
parente3fedd68c253dace20a380bc2a4193aa5bf243ab (diff)
parentc56970e3f72192bf02a0cae535b45357981a848a (diff)
downloadgitlab-ce-d793d4a7c30c7e16e43b8f4d393c393fe9e7ab3f.tar.gz
Merge branch 'duplicate-related-mrs' into 'master'
Remove duplicates from issue related merge requests See merge request gitlab-org/gitlab-ce!27067
Diffstat (limited to 'lib')
-rw-r--r--lib/api/issues.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb
index 3dd90502050..999a9cb5a82 100644
--- a/lib/api/issues.rb
+++ b/lib/api/issues.rb
@@ -307,7 +307,7 @@ module API
merge_requests = ::Issues::ReferencedMergeRequestsService.new(user_project, current_user)
.execute(issue)
- .flatten
+ .first
present paginate(::Kaminari.paginate_array(merge_requests)),
with: Entities::MergeRequest,