summaryrefslogtreecommitdiffstats
path: root/app/helpers/custom_fields_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-14 17:29:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-14 17:29:06 +0000
commit025581bb284aa21a83cd9e64e28e3f284489bcfa (patch)
treefe8906230acd67964252ad2146cfc22f18550f37 /app/helpers/custom_fields_helper.rb
parent6d3c0dab015f22c0def1ad12be7c2d7bb1a56f18 (diff)
downloadredmine-025581bb284aa21a83cd9e64e28e3f284489bcfa.tar.gz
redmine-025581bb284aa21a83cd9e64e28e3f284489bcfa.zip
Fixes boolean custom fields tags (broken by r1592) (#1640).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1668 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/custom_fields_helper.rb')
-rw-r--r--app/helpers/custom_fields_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb
index 540c6b4a1..3c795dc1f 100644
--- a/app/helpers/custom_fields_helper.rb
+++ b/app/helpers/custom_fields_helper.rb
@@ -37,7 +37,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, custom_value.value, :id => field_id)
+ check_box_tag(field_name, '1', custom_value.true?, :id => field_id) + hidden_field_tag(field_name, '0')
when "list"
blank_option = custom_field.is_required? ?
(custom_field.default_value.blank? ? "<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" : '') :