Project

General

Profile

Actions

Defect #42330

closed

Custom Floating Point Field Truncating Decimal Part

Added by Foster Taylor about 1 month ago. Updated 8 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

Description

I have detected a bug related with custom floating point number fields, specifically in how their decimal part is displayed in read-only views.

Steps to Reproduce

  1. Create a custom floating-point field (in my case: "Betrag") to store currency values.
  2. Add this new field to any tracker for use.
  3. Enter a value with decimals (e.g., 100,50) and save the ticket.
  4. View the ticket details or any table displaying multiple tickets where this field appears as read-only.
  5. The decimal part is truncated, and the value appears incorrectly as 100,00.
  6. Re-enter the Edit mode - inside the input field, the correct value (e.g., 100,50) reappears.

Example screenshots with the value "4788,89":

When creating or editing:

When displayed in read-only:

Expected Behavior

The decimal part should be consistently displayed both in read-only mode and in edit mode without truncation.

Actual Behavior

The decimal part is missing in read-only mode, but reappears when editing.

Impact

This issue can lead to misinterpretation of numerical values, especially for currency fields where precision is critical.

Suggested Fix

Ensure that floating point numbers are consistently formatted and displayed across both read-only and edit views.

Other relevant information

Using Redmine Docker image version 6:

Environment:
Redmine version 6.0.3.stable
Ruby version 3.3.7-p123 (2025-01-15) [aarch64-linux]
Rails version 7.2.2.1
Environment production
Database adapter SQLite
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Default
SCM:
Subversion 1.14.2
Mercurial 6.3.2
Bazaar 3.3.2
Git 2.39.5
Filesystem
Redmine plugins:
no plugin installed


Files


Related issues

Is duplicate of Redmine - Defect #42233: Float custom values with ',' as decimal separator are not converted to '.' and cause SQL errors when sorting or summingClosedGo MAEDA

Actions
Actions #1

Updated by Go MAEDA 8 days ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

This issue was fixed in #42233. Please see #42233#note-4 for details and update to Redmine 6.0.4 to fix the issue.
Sorry for the inconvenience.

Actions #2

Updated by Go MAEDA 8 days ago

  • Is duplicate of Defect #42233: Float custom values with ',' as decimal separator are not converted to '.' and cause SQL errors when sorting or summing added
Actions

Also available in: Atom PDF