Defect #22024

Validation error on float custom filed in case of i18n decimal separator

Added by Rafael Neves over 6 years ago. Updated over 6 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:I18n
Target version:-
Resolution: Affected version:2.6.2

Description

Hi.I´m using redmine 2.6.2. I have created a custom field wich type is float. I want to use comma as decimal separator.

But when i set locale to , pt or pt-BR, for instance, if the user inputs a
float like '95,70' or '500,25' in a form input, numerical
validation will yield an 'invalid_number' error, even though this is a
valid format in Brazil.

Only works if i use dot as decimal separator... but it is not the right way to do it.

Is that a newer version of redmine that fix it ?

How we that uses comma as decimal separator deals with with number formats in redmine?

Thanks!


Related issues

Related to Redmine - Feature #21677: Use localised decimal separator for hours in the web UI New

History

#1 Updated by Toshi MARUYAMA over 6 years ago

  • Related to Feature #21677: Use localised decimal separator for hours in the web UI added

#2 Updated by Toshi MARUYAMA over 6 years ago

  • Subject changed from decimal separator in float custom filed doesn´t work to Validation error on float custom filed in case of i18n decimal separator

#3 Updated by Rafael Neves over 6 years ago

thanks!

Also available in: Atom PDF