Commit 843092b6 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Don't filter params and merge them back in later

By building the issue before filtering
parent 5eee4775
......@@ -4,16 +4,11 @@ module Issues
include ResolveDiscussions
def execute
@issue = BuildService.new(project, current_user, params).execute
filter_spam_check_params
filter_resolve_discussion_params
issue_attributes = params.merge(
merge_request_for_resolving_discussions: merge_request_for_resolving_discussions_iid,
discussion_to_resolve: discussion_to_resolve_id
)
@issue = BuildService.new(project, current_user, issue_attributes).execute
create(@issue)
end
......
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