diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-07-01 14:03:49 +0200 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-07-01 14:03:49 +0200 |
commit | 751d267f299d6851a19f4ff19e9e60a91c10e62d (patch) | |
tree | 2975d0701dfc5a9b8db0235fea3a4a5dc6e1da79 /app | |
parent | 8fb76a8308292d991a32ea76e50fb5ecfa3284b2 (diff) | |
download | gitlab-ce-751d267f299d6851a19f4ff19e9e60a91c10e62d.tar.gz |
Create required issue param for new action.
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/projects/issues_controller.rb | 4 |
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 |