From 478a549356cf144ddccf21b8ef57af3b38d2f3df Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 13 May 2012 08:47:54 +0000 Subject: [PATCH] Use content_tag helper. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9682 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/custom_fields_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb index 789d527b5..fb4e51938 100644 --- a/app/helpers/custom_fields_helper.rb +++ b/app/helpers/custom_fields_helper.rb @@ -55,13 +55,13 @@ module CustomFieldsHelper unless custom_field.multiple? if custom_field.is_required? unless custom_field.default_value.present? - blank_option = "" + blank_option = content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') end else - blank_option = '' + blank_option = content_tag('option') end end - s = select_tag(field_name, blank_option.html_safe + options_for_select(custom_field.possible_values_options(custom_value.customized), custom_value.value), + s = select_tag(field_name, blank_option + options_for_select(custom_field.possible_values_options(custom_value.customized), custom_value.value), tag_options.merge(:multiple => custom_field.multiple?)) if custom_field.multiple? s << hidden_field_tag(field_name, '') -- 2.39.5