Commit 8b9edcbe authored by tmaruyama's avatar tmaruyama

Rails3: use String#html_safe for custom_field_label_tag() at CustomFieldsHelper.

git-svn-id: https://svn.redmine.org/redmine/trunk@6475 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0f053cc8
......@@ -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? ? " <span class=\"required\">*</span>" : ""),
(custom_value.custom_field.is_required? ? " <span class=\"required\">*</span>".html_safe : ""),
:for => "#{name}_custom_field_values_#{custom_value.custom_field.id}",
:class => (custom_value.errors.empty? ? nil : "error" )
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment