Hello thanks for the module, i've just set a cck money field. I selected eur and usd as my field currencies but i would set a default value too.
when i set a value (in php format too), system tells me those errors:
The currency EUR is not allowed. (but it it enabled!)
Default value is invalid.
Has anyone the same issue?
Then the Eur decimal and group separator are inverted.
Thanks for help.
jM
Comments
Comment #1
johnmullin2003 commentededit: about decimal separator, I solved this issue in Currency section.. sorry I didn't see it before.
about the default currency and default value, issue is still active...
thanks all for suggestions/help.
Comment #2
markus_petrux commentedOh, I see. It seems that CCK is not passing the allowed currencies option where we expect.
Please, edit the money.module and replace function money_validate_field_value() with this one:
Works?
Comment #3
markus_petrux commentedComment #4
Jonah Fenn commentedmarkus -
I'm running into the same issue. I'm using Drupal 6.9. The currency module is a new install for me so I don't have any point of reference prior to 6.9.
After patching the money.module, it didn't throw an error message after setting the default value (US Dollars) but when I went to test the content, it just gave me a -- as my selection option.
I blew out the field and attempted to rebuild it and then, oddly enough, received the original error message again.
Thanks, in advance, for any additional help you might provide with this.
Comment #5
haggins commentedThis patch works for me (Drupal 6.9), thx Markus!
Comment #6
markus_petrux commentedFixed in CVS. Thanks
Comment #7
markus_petrux commented