Commit 1e743a1d authored by Nick Thomas's avatar Nick Thomas

Backport changes to Projects::MergeRequestsController for gitlab-org/gitlab-ee!2200

parent 0551364c
...@@ -579,10 +579,10 @@ class Projects::MergeRequestsController < Projects::ApplicationController ...@@ -579,10 +579,10 @@ class Projects::MergeRequestsController < Projects::ApplicationController
def merge_request_params def merge_request_params
params.require(:merge_request) params.require(:merge_request)
.permit(merge_request_params_ce) .permit(merge_request_params_attributes)
end end
def merge_request_params_ce def merge_request_params_attributes
[ [
:assignee_id, :assignee_id,
:description, :description,
...@@ -602,7 +602,11 @@ class Projects::MergeRequestsController < Projects::ApplicationController ...@@ -602,7 +602,11 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end end
def merge_params 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 end
# Make sure merge requests created before 8.0 # Make sure merge requests created before 8.0
......
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