From 751d267f299d6851a19f4ff19e9e60a91c10e62d Mon Sep 17 00:00:00 2001 From: Marin Jankovski Date: Tue, 1 Jul 2014 14:03:49 +0200 Subject: [PATCH] Create required issue param for new action. --- app/controllers/projects/issues_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index bf05845eff..4dc9384c99 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -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