Commit 5485b0b4 authored by Tetiana Chupryna's avatar Tetiana Chupryna

Use MoveService directly

MoveService do the same job as one of UpdateService actions.
This service also is used in the similar action of api
/lib/api/issues.rb
So we're aligning those two methods
parent 86791007
......@@ -160,7 +160,7 @@ class Projects::IssuesController < Projects::ApplicationController
new_project = Project.find(params[:move_to_project_id])
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
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