summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-12-15 11:02:24 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-12-15 11:02:24 +0000
commit77665b52523d13532c16c97090b83c7ef88e2b62 (patch)
tree1cdc7cc7be982e543bda47d47efaeb8c60966e6f /app/helpers
parent13756eb3a830e04493ebc048ae72e9271df4411c (diff)
downloadredmine-77665b52523d13532c16c97090b83c7ef88e2b62.tar.gz
redmine-77665b52523d13532c16c97090b83c7ef88e2b62.zip
Store relation type instead of i18n key in journals (#15704).
git-svn-id: http://svn.redmine.org/redmine/trunk@12416 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/issues_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index ed1d243fb..05cc84471 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -340,7 +340,8 @@ module IssuesHelper
old_value = rel_issue.nil? ? "#{l(:label_issue)} ##{detail.old_value}" :
(no_html ? rel_issue : link_to_issue(rel_issue, :only_path => options[:only_path]))
end
- label = l(detail.prop_key.to_sym)
+ relation_type = IssueRelation::TYPES[detail.prop_key]
+ label = l(relation_type[:name]) if relation_type
end
call_hook(:helper_issues_show_detail_after_setting,
{:detail => detail, :label => label, :value => value, :old_value => old_value })