Project

General

Profile

Actions

Defect #38880

open

Incorrect default value display on true/false custom field when editing issues

Added by salman mp 9 months ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hi

Scenario:
  1. add new custom field of type "boolean"
  2. select default value "False"
  3. select display mode "drop down"

When you creating a new issue, newly created custom field correctly is False.
But when you editing issues that was created before adding custom field, the custom field shown as True.

Env:
Redmine 4.2.10
Ruby 2.7

Actions #1

Updated by Mizuki ISHIKAWA 9 months ago

Presumably, to reproduce this issue, you need to set Required to true in the custom field settings.
When editing an existing issue with custom field Required set to true, the custom field value is empty but the dropdown only has a Yes or No option, so Yes seems to be preferred.

Actions

Also available in: Atom PDF