@@ -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 |
|
|
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