Project

General

Profile

Defect #13354 » issues_helper.rb_r11621.patch

Jun NAITOH, 2013-03-13 13:50

View differences:

app/helpers/issues_helper.rb (working copy)
association = Issue.reflect_on_association(field.to_sym)
if association
record = association.class_name.constantize.find_by_id(id)
return record.name if record
if record
record.name.force_encoding('UTF-8') if record.name.respond_to?(:force_encoding)
return record.name
end
end
end
(3-3/3)