summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-07-01 14:03:49 +0200
committerMarin Jankovski <marin@gitlab.com>2014-07-01 14:03:49 +0200
commit751d267f299d6851a19f4ff19e9e60a91c10e62d (patch)
tree2975d0701dfc5a9b8db0235fea3a4a5dc6e1da79 /app
parent8fb76a8308292d991a32ea76e50fb5ecfa3284b2 (diff)
downloadgitlab-ce-751d267f299d6851a19f4ff19e9e60a91c10e62d.tar.gz
Create required issue param for new action.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/issues_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb
index bf05845effe..4dc9384c996 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