##// END OF EJS Templates
Fixed: 500 error when validation fails on issue edition with no custom fields....
Jean-Philippe Lang -
r970:bd8eded6702a
parent child
Show More
@@ -91,6 +91,7 class IssuesController < ApplicationController
91
91
92 def edit
92 def edit
93 @priorities = Enumeration::get_values('IPRI')
93 @priorities = Enumeration::get_values('IPRI')
94 @custom_values = []
94 if request.get?
95 if request.get?
95 @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) }
96 @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) }
96 else
97 else
General Comments 0
You need to be logged in to leave comments. Login now