Commit ebdc3cd4 authored by charlie ablett's avatar charlie ablett

Merge branch '20816-refactor-controller-action' into 'master'

Use MoveService directly

See merge request gitlab-org/gitlab!62709
parents 17badc52 5485b0b4
...@@ -160,7 +160,7 @@ class Projects::IssuesController < Projects::ApplicationController ...@@ -160,7 +160,7 @@ class Projects::IssuesController < Projects::ApplicationController
new_project = Project.find(params[:move_to_project_id]) new_project = Project.find(params[:move_to_project_id])
return render_404 unless issue.can_move?(current_user, new_project) return render_404 unless issue.can_move?(current_user, new_project)
@issue = ::Issues::UpdateService.new(project: project, current_user: current_user, params: { target_project: new_project }).execute(issue) @issue = ::Issues::MoveService.new(project: project, current_user: current_user).execute(issue, new_project)
end end
respond_to do |format| respond_to do |format|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment