diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2009-10-21 03:31:20 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2009-10-21 03:31:20 +0000 |
commit | 739e11702a810b0a84959679a634cf72f75815e6 (patch) | |
tree | dfe2cdad42c4692725e4e5adec4f8596d51ed620 /app/helpers/custom_fields_helper.rb | |
parent | d40756d61122ac31c16c41f1bb5ab4d0a9e507c6 (diff) | |
download | redmine-739e11702a810b0a84959679a634cf72f75815e6.tar.gz redmine-739e11702a810b0a84959679a634cf72f75815e6.zip |
Change the order of checkboxes for boolean custom fields.
Broken in r2887 for the Rails 2.3.4 upgrade.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2942 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/custom_fields_helper.rb')
-rw-r--r-- | app/helpers/custom_fields_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb index f97b9238b..6e99b6a7c 100644 --- a/app/helpers/custom_fields_helper.rb +++ b/app/helpers/custom_fields_helper.rb @@ -39,7 +39,7 @@ module CustomFieldsHelper when "text" text_area_tag(field_name, custom_value.value, :id => field_id, :rows => 3, :style => 'width:90%') when "bool" - check_box_tag(field_name, '1', custom_value.true?, :id => field_id) + hidden_field_tag(field_name, '0') + hidden_field_tag(field_name, '0') + check_box_tag(field_name, '1', custom_value.true?, :id => field_id) when "list" blank_option = custom_field.is_required? ? (custom_field.default_value.blank? ? "<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" : '') : |