Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fr:number: incorrect behavior with "." as grouping separator #2857

Closed
ebruchez opened this Issue Aug 2, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@ebruchez
Copy link
Collaborator

ebruchez commented Aug 2, 2016

Set the following properties:

<property as="xs:string" name="oxf.xforms.xbl.fr.number.decimal-separator"    value="," />
<property as="xs:string" name="oxf.xforms.xbl.fr.number.grouping-separator"   value="." />
<property as="xs:string" name="oxf.xforms.xbl.fr.number.digits-after-decimal" value="2" />
  • enter value "1,5"
  • field contains "1,50" after blur
  • click into the field again
  • decimal separator is removed (which is wrong)
  • field contains the value "15"
  • after blur the field contains the value "15,00" (which is wrong)

+1 from customer

@ebruchez ebruchez added this to the 2.10.3 milestone Aug 2, 2016

@ebruchez ebruchez self-assigned this Aug 2, 2016

@ebruchez

This comment has been minimized.

Copy link
Collaborator Author

ebruchez commented Aug 2, 2016

Issue is caused by code which cleans up separators from the instance value. There is no need to remove them in this case, because the value in instance data should be assumed to be in the correct format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.