Permalink
Browse files

Add more html_safe calls to old helper methods

  • Loading branch information...
1 parent 80e8fdf commit db81751a6a3f997997d7371ce06b858b75c1bdcf @paneidos committed Oct 27, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 app/helpers/issues_helper.rb
View
10 app/helpers/issues_helper.rb
@@ -223,20 +223,20 @@ def show_detail(detail, no_html=false)
: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

0 comments on commit db81751

Please sign in to comment.