diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-02 11:35:54 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-02 11:35:54 +0000 |
commit | 20f3dde0dd38a9ea103e1befce356175275051d3 (patch) | |
tree | f9c8c791833f273a59916b729ea1e39cf0f3806c /app/helpers/issues_helper.rb | |
parent | 3d379c4d07328c75ce083118462acc1942067b96 (diff) | |
download | redmine-20f3dde0dd38a9ea103e1befce356175275051d3.tar.gz redmine-20f3dde0dd38a9ea103e1befce356175275051d3.zip |
Rails3: helper: html_safe for issues helper "show_detail" method
Contributed by Sernin van de Krol.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8024 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index dd7edb983..9c1407145 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -223,20 +223,20 @@ module IssuesHelper :title => l(:label_view_diff) s << " (#{ diff_link })" end - s + s.html_safe elsif !detail.value.blank? case detail.property when 'attr', 'cf' if !detail.old_value.blank? - l(:text_journal_changed, :label => label, :old => old_value, :new => value) + l(:text_journal_changed, :label => label, :old => old_value, :new => value).html_safe else - l(:text_journal_set_to, :label => label, :value => value) + l(:text_journal_set_to, :label => label, :value => value).html_safe end when 'attachment' - l(:text_journal_added, :label => label, :value => value) + l(:text_journal_added, :label => label, :value => value).html_safe end else - l(:text_journal_deleted, :label => label, :old => old_value) + l(:text_journal_deleted, :label => label, :old => old_value).html_safe end end |