Commit 751d267f authored by Marin Jankovski's avatar Marin Jankovski

Create required issue param for new action.

parent 8fb76a83
...@@ -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