Commit 4e1f9e2b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'issue_strong_param' into 'master'

Issue strong param

Fixes #1390
parents 57f1ff5d 751d267f
...@@ -42,6 +42,10 @@ class Projects::IssuesController < Projects::ApplicationController ...@@ -42,6 +42,10 @@ class Projects::IssuesController < Projects::ApplicationController
end end
def new def new
params[:issue] ||= ActionController::Parameters.new(
assignee_id: ""
)
@issue = @project.issues.new(issue_params) @issue = @project.issues.new(issue_params)
respond_with(@issue) respond_with(@issue)
end 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