"Please enter a valid number" editing number type attributes
book
Article ID: 400926
calendar_today
Updated On:
Products
Clarity PPM On PremiseClarity PPM SaaS
Issue/Introduction
At times you get the error "Please enter a valid number" when editing number type attributes if the user locale uses comma as a decimal separator
STEPS TO REPRODUCE:
Administration > Studio > Objects > Project object
Create a Number type attribute with 2 decimals
Add it to a project blueprint
Change the user locale to any that uses comma as a decimal separator, let say Spanish
Associate a project to the above blueprint
On the number type field add a number like 4,32 (note the comma as decimal separator)
Edit the number type field add a number like 3.25 (note the dot as decimal separator)
When you move away the decimal separator changes from a dot to a comma as expected
Refresh the page
The decimal number display will turn to a dot 3.25 (You might need several edits and refreshes before you reproduce the issue)
Try to change the value to any other number like 7,17
Expected Results: The change to be saved Actual results: You get the following error: Please enter a valid number
Environment
Clarity 16.3.1, 16.3.2
Cause
This has been investigated through DE171701
Resolution
This is not reproducible in Clarity 16.3.3 after some date formatting logic change.
Additional Information
Once you are on this scenario where the decimal separator displays as a dot instead of a comma, you can not change the field value any longer and if you click inside and outside the cell, the number multiplies by a thousand