When I submit a node with a price field the first time there is no problem as long as I don't use any commas to separate the number, but when I come back to the page the module always adds spaces into the number, and if I try to edit the page I am forced to remove the spaces that it adds each time or else I get the following error "The amount is formatted invalidly." So each time I go back to the page I have to remember to remove the spaces and then it adds them back in immediately so that the next time I come back to the page I have the same issue.

Comments

wim leers’s picture

Status: Active » Postponed (maintainer needs more info)

How have you configured your decimal and digit group separators? And what is the *exact* string you entered?

PixelClever’s picture

Title: Errors on edits » I did configure the decimal and digit group separators

I did configure the decimal and digit group separators, but the module always removes the commas each time the string is submitted. For example I enter 10000.00 and submit and the page now shows 10 000.00 (note the added space.) Then when I return to edit the node the integer in the cck field now has that space as well (10 000.00) If I try to hit submit without changing anything at all on the page it doesn't allow me too and says that there is an error in the formatting. So in order to submit a page I have to go back and remove the space each time (I have to change 10 000.00 to 10000.00) But as soon as I submit the page the space is added back in.

wim leers’s picture

That's because you entered a space as digit group separator then.

PixelClever’s picture

Title: I did configure the decimal and digit group separators » No, the group separator is set as a comma

I double checked this twice. In fact to make sure I went and set up a new content type and configured it very carefully. The group separator is set as a comma and the decimal separator is set as a period and the error is exactly the same as it was with the other content type.

wim leers’s picture

Title: No, the group separator is set as a comma » Separator settings not being respected
Status: Postponed (maintainer needs more info) » Active

That's very odd. This has been tested thoroughly, and not only by me. Will try to reproduce.

Also, please don't change the issue title each time you comment :) (Yes - it affects the title of the issue itself!)

PixelClever’s picture

Sorry about changing the title. I didn't realize it was making it more difficult to track.

wim leers’s picture

Assigned: Unassigned » wim leers
Category: bug » support
Status: Active » Fixed

On second thought, I bet this is because the space is the *default* digit group separator, but it's just not visible (because it's a space). Put your cursor in the text field and you'll see there's a character entered. Delete it and your problem should have disappeared.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.