summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/issues_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 59cff5ec1..b4b15a66e 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -353,7 +353,10 @@ module IssuesHelper
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