##// END OF EJS Templates
PDF: fix incompatible character encodings: UTF-8 and ASCII-8BIT (#13354)...
Toshi MARUYAMA -
r11407:628f9dc4cfd4
parent child
Show More
@@ -355,7 +355,10 module IssuesHelper
355 association = Issue.reflect_on_association(field.to_sym)
355 association = Issue.reflect_on_association(field.to_sym)
356 if association
356 if association
357 record = association.class_name.constantize.find_by_id(id)
357 record = association.class_name.constantize.find_by_id(id)
358 return record.name if record
358 if record
359 record.name.force_encoding('UTF-8') if record.name.respond_to?(:force_encoding)
360 return record.name
361 end
359 end
362 end
360 end
363 end
361
364
General Comments 0
You need to be logged in to leave comments. Login now