Create required issue param for new action.
This commit is contained in:
parent
8fb76a8308
commit
751d267f29
|
@ -42,6 +42,10 @@ class Projects::IssuesController < Projects::ApplicationController
|
|||
end
|
||||
|
||||
def new
|
||||
params[:issue] ||= ActionController::Parameters.new(
|
||||
assignee_id: ""
|
||||
)
|
||||
|
||||
@issue = @project.issues.new(issue_params)
|
||||
respond_with(@issue)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue