diff options
author | Nick Thomas <nick@gitlab.com> | 2017-06-21 18:30:45 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-06-21 18:30:45 +0300 |
commit | 1e743a1db7978eeb22f6b5dc94c3268b31cfec76 (patch) | |
tree | ece62c505d54c64b2d7ef800d41f425606b84bb1 | |
parent | 0551364c60ff5f27ae10f5d0231bec8144332f5b (diff) |
Backport changes to Projects::MergeRequestsController for gitlab-org/gitlab-ee!2200
-rw-r--r-- | app/controllers/projects/merge_requests_controller.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/controllers/projects/merge_requests_controller.rb b/app/controllers/projects/merge_requests_controller.rb index cbe73f9c1e3..aae6f7a99fd 100644 --- a/app/controllers/projects/merge_requests_controller.rb +++ b/app/controllers/projects/merge_requests_controller.rb @@ -579,10 +579,10 @@ class Projects::MergeRequestsController < Projects::ApplicationController def merge_request_params params.require(:merge_request) - .permit(merge_request_params_ce) + .permit(merge_request_params_attributes) end - def merge_request_params_ce + def merge_request_params_attributes [ :assignee_id, :description, @@ -602,7 +602,11 @@ class Projects::MergeRequestsController < Projects::ApplicationController end def merge_params - params.permit(:should_remove_source_branch, :commit_message) + params.permit(merge_params_attributes) + end + + def merge_params_attributes + [:should_remove_source_branch, :commit_message] end # Make sure merge requests created before 8.0 |