Commit bd8eded6 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

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
parent d5cc40c9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment