diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-12 21:10:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-12 21:10:04 +0000 |
commit | bd8eded6702add06ae55cc960fe3b9cc378a9fd9 (patch) | |
tree | 4c9ace46c4662d0de4b1055c679a2b0c2fa5a2bf | |
parent | d5cc40c9b6b70b45efbe7ca284203274ccf1b53a (diff) | |
download | redmine-bd8eded6702add06ae55cc960fe3b9cc378a9fd9.tar.gz redmine-bd8eded6702add06ae55cc960fe3b9cc378a9fd9.zip |
Fixed: 500 error when validation fails on issue edition with no custom fields.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@983 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/issues_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 081d8f895..901e1432b 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -91,6 +91,7 @@ class IssuesController < ApplicationController def edit @priorities = Enumeration::get_values('IPRI') + @custom_values = [] if request.get? @custom_values = @project.custom_fields_for_issues(@issue.tracker).collect { |x| @issue.custom_values.find_by_custom_field_id(x.id) || CustomValue.new(:custom_field => x, :customized => @issue) } else |