summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-17 15:59:25 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-17 07:39:15 +0100
commitc8e7d1ed8e3eafcc8234a0e6f443bf85369c8de1 (patch)
tree1b6e5cff95e648f2650b8bc7d062585ea637eead /app/controllers/projects
parent11f817b3fda3f77da5fdfda787816fd36d4d98a6 (diff)
downloadgitlab-ce-c8e7d1ed8e3eafcc8234a0e6f443bf85369c8de1.tar.gz
Add issue move implementation to controller
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/issues_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb
index b0a03ee45cc..e3486f576c0 100644
--- a/app/controllers/projects/issues_controller.rb
+++ b/app/controllers/projects/issues_controller.rb
@@ -88,6 +88,11 @@ class Projects::IssuesController < Projects::ApplicationController
def update
@issue = Issues::UpdateService.new(project, current_user, issue_params).execute(issue)
+ move_service = Issues::MoveService.new(project, current_user, params.require(:issue).permit!, @issue)
+
+ if move_service.move?
+ @issue = move_service.execute
+ end
respond_to do |format|
format.js