diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-24 14:49:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-24 14:49:05 +0000 |
commit | 018b81a46a3133c4a294f5da72ee3420c6cc08f4 (patch) | |
tree | 824c740e4c6129c6e3576ac5e8efb2498d0cc86a /app/controllers/projects_controller.rb | |
parent | 941a240535ac1b62f210afefefa4a0013b185a5f (diff) | |
download | redmine-018b81a46a3133c4a294f5da72ee3420c6cc08f4.tar.gz redmine-018b81a46a3133c4a294f5da72ee3420c6cc08f4.zip |
Fixed 10337 Regression: Admin raises issue in project not assigned to
git-svn-id: http://redmine.rubyforge.org/svn/trunk@474 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 5dfc68068..494c23139 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -216,7 +216,7 @@ class ProjectsController < ApplicationController default_status = IssueStatus.default @issue = Issue.new(:project => @project, :tracker => @tracker) @issue.status = default_status - @allowed_statuses = default_status.find_new_statuses_allowed_to(logged_in_user.role_for_project(@project), @issue.tracker) if logged_in_user + @allowed_statuses = (default_status.find_new_statuses_allowed_to(logged_in_user.role_for_project(@project), @issue.tracker) || [default_status])if logged_in_user if request.get? @issue.start_date = Date.today @custom_values = @project.custom_fields_for_issues(@tracker).collect { |x| CustomValue.new(:custom_field => x, :customized => @issue) } |