@@ -353,7 +353,10 module IssuesHelper | |||
|
353 | 353 | association = Issue.reflect_on_association(field.to_sym) |
|
354 | 354 | if association |
|
355 | 355 | record = association.class_name.constantize.find_by_id(id) |
|
356 |
|
|
|
356 | if record | |
|
357 | record.name.force_encoding('UTF-8') if record.name.respond_to?(:force_encoding) | |
|
358 | return record.name | |
|
359 | end | |
|
357 | 360 | end |
|
358 | 361 | end |
|
359 | 362 |
General Comments 0
You need to be logged in to leave comments.
Login now