diff options
author | Michael Kozono <mkozono@gmail.com> | 2019-04-05 20:07:05 +0000 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2019-04-05 20:07:05 +0000 |
commit | d793d4a7c30c7e16e43b8f4d393c393fe9e7ab3f (patch) | |
tree | 5b47c54e9f6e24efbe8c416a437f8adb413efa3d /lib | |
parent | e3fedd68c253dace20a380bc2a4193aa5bf243ab (diff) | |
parent | c56970e3f72192bf02a0cae535b45357981a848a (diff) | |
download | gitlab-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.rb | 2 |
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, |