Project

General

Profile

Actions

Patch #5722

open

Custom Boolean Fields cannot be set to true

Added by Volker Gersabeck over 14 years ago. Updated over 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Start date:
2010-06-22
Due date:
% Done:

0%

Estimated time:

Description

ruby 1.8.7
Rails 2.2.3
Redmine 0.9.3.stable (MySQL)

When having a custom boolean field for my issues, I was not able to set it to true since the hidden input value was used when updating the values instead of the checkbox value. Changing the order of the hidden input and the checkbox solved this issue. Just replace in /usr/share/redmine/app/helpers/custom_fields_helper.rb around line 47:

hidden_field_tag(field_name, '0') + check_box_tag(field_name, '1', custom_value.true?, :id => field_id)

by

check_box_tag(field_name, '1', custom_value.true?, :id => field_id) + hidden_field_tag(field_name, '0')


Related issues

Related to Redmine - Defect #16559: Project custom fields (boolean) doesn't update correctlyNew

Actions
Actions #1

Updated by Toshi MARUYAMA over 13 years ago

  • Category set to Custom fields
Actions #2

Updated by Go MAEDA about 8 years ago

  • Related to Defect #16559: Project custom fields (boolean) doesn't update correctly added
Actions

Also available in: Atom PDF