##// END OF EJS Templates
Use content_tag helper....
Jean-Philippe Lang -
r9499:478a549356cf
parent child
Show More
@@ -55,13 +55,13 module CustomFieldsHelper
55 55 unless custom_field.multiple?
56 56 if custom_field.is_required?
57 57 unless custom_field.default_value.present?
58 blank_option = "<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>"
58 blank_option = content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '')
59 59 end
60 60 else
61 blank_option = '<option></option>'
61 blank_option = content_tag('option')
62 62 end
63 63 end
64 s = select_tag(field_name, blank_option.html_safe + options_for_select(custom_field.possible_values_options(custom_value.customized), custom_value.value),
64 s = select_tag(field_name, blank_option + options_for_select(custom_field.possible_values_options(custom_value.customized), custom_value.value),
65 65 tag_options.merge(:multiple => custom_field.multiple?))
66 66 if custom_field.multiple?
67 67 s << hidden_field_tag(field_name, '')
General Comments 0
You need to be logged in to leave comments. Login now