@@ -39,7 +39,7 module CustomFieldsHelper | |||||
39 | when "text" |
|
39 | when "text" | |
40 | text_area_tag(field_name, custom_value.value, :id => field_id, :rows => 3, :style => 'width:90%') |
|
40 | text_area_tag(field_name, custom_value.value, :id => field_id, :rows => 3, :style => 'width:90%') | |
41 | when "bool" |
|
41 | when "bool" | |
42 |
check_box_tag(field_name, '1', custom_value.true?, :id => field_id) |
|
42 | hidden_field_tag(field_name, '0') + check_box_tag(field_name, '1', custom_value.true?, :id => field_id) | |
43 | when "list" |
|
43 | when "list" | |
44 | blank_option = custom_field.is_required? ? |
|
44 | blank_option = custom_field.is_required? ? | |
45 | (custom_field.default_value.blank? ? "<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" : '') : |
|
45 | (custom_field.default_value.blank? ? "<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" : '') : |
General Comments 0
You need to be logged in to leave comments.
Login now