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
This commit is contained in:
Jean-Philippe Lang 2007-12-12 21:10:04 +00:00
parent d5cc40c9b6
commit bd8eded670
1 changed files with 1 additions and 0 deletions

View File

@ -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