##// END OF EJS Templates
Rails3: use String#html_safe for custom_field_label_tag() at CustomFieldsHelper....
Toshi MARUYAMA -
r6355:86379d82031c
parent child
Show More
@@ -58,7 +58,7 module CustomFieldsHelper
58 # Return custom field label tag
58 # Return custom field label tag
59 def custom_field_label_tag(name, custom_value)
59 def custom_field_label_tag(name, custom_value)
60 content_tag "label", h(custom_value.custom_field.name) +
60 content_tag "label", h(custom_value.custom_field.name) +
61 (custom_value.custom_field.is_required? ? " <span class=\"required\">*</span>" : ""),
61 (custom_value.custom_field.is_required? ? " <span class=\"required\">*</span>".html_safe : ""),
62 :for => "#{name}_custom_field_values_#{custom_value.custom_field.id}",
62 :for => "#{name}_custom_field_values_#{custom_value.custom_field.id}",
63 :class => (custom_value.errors.empty? ? nil : "error" )
63 :class => (custom_value.errors.empty? ? nil : "error" )
64 end
64 end
General Comments 0
You need to be logged in to leave comments. Login now