From: Toshi MARUYAMA Date: Sat, 20 Aug 2011 10:50:59 +0000 (+0000) Subject: Rails3: use String#html_safe for custom_field_label_tag() at CustomFieldsHelper. X-Git-Tag: 1.3.0~1486 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=86379d82031ca79adc93ae42fa2771a325f5354c;p=redmine.git Rails3: use String#html_safe for custom_field_label_tag() at CustomFieldsHelper. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6475 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb index bcc4cfa11..0c5e6635d 100644 --- a/app/helpers/custom_fields_helper.rb +++ b/app/helpers/custom_fields_helper.rb @@ -58,7 +58,7 @@ module CustomFieldsHelper # Return custom field label tag def custom_field_label_tag(name, custom_value) content_tag "label", h(custom_value.custom_field.name) + - (custom_value.custom_field.is_required? ? " *" : ""), + (custom_value.custom_field.is_required? ? " *".html_safe : ""), :for => "#{name}_custom_field_values_#{custom_value.custom_field.id}", :class => (custom_value.errors.empty? ? nil : "error" ) end