diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-03-01 10:15:58 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-03-13 08:27:51 +0100 |
commit | 40be92e74c60262b5ed92064fe42a27eac88f1c3 (patch) | |
tree | 9788e00f76842879aad1286fee5caf5bd7df02fa /lib | |
parent | ffe135ccf650da3d2415447e4ce648880c1a241d (diff) | |
download | gitlab-ce-40be92e74c60262b5ed92064fe42a27eac88f1c3.tar.gz |
Make API v3 compatible with the changes in `Issues::CreateService`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/v3/issues.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/api/v3/issues.rb b/lib/api/v3/issues.rb index 5d7dfabfcd6..bb3535bedf8 100644 --- a/lib/api/v3/issues.rb +++ b/lib/api/v3/issues.rb @@ -140,12 +140,6 @@ module API issue_params = declared_params(include_missing: false) - if merge_request_iid = params[:merge_request_for_resolving_discussions] - issue_params[:merge_request_for_resolving_discussions] = MergeRequestsFinder.new(current_user, project_id: user_project.id). - execute. - find_by(iid: merge_request_iid) - end - issue = ::Issues::CreateService.new(user_project, current_user, issue_params.merge(request: request, api: true)).execute |