]> source.dussan.org Git - redmine.git/commitdiff
Rails3: use String#html_safe for custom_field_label_tag() at CustomFieldsHelper.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 10:50:59 +0000 (10:50 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 20 Aug 2011 10:50:59 +0000 (10:50 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6475 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/custom_fields_helper.rb

index bcc4cfa111ddc697e460c2140ff50e77c4e91eaa..0c5e6635d3aabb8e84198f49b3274f22294b446a 100644 (file)
@@ -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