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
Comment #1
wim leersHow have you configured your decimal and digit group separators? And what is the *exact* string you entered?
Comment #2
PixelClever commentedI 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.
Comment #3
wim leersThat's because you entered a space as digit group separator then.
Comment #4
PixelClever commentedI 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.
Comment #5
wim leersThat'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!)
Comment #6
PixelClever commentedSorry about changing the title. I didn't realize it was making it more difficult to track.
Comment #7
wim leersOn 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.
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.