I had a problem with an "unlimited" lenght cck select field.
This field had a list of "allowed values" generated using a 'hook_content_allowed_values_alter', but it should not interfere.
When selecting multiple values on node edition, the clientside validation was failing to validate with the message '!name field has to have maximum !max values.', because it was being checked by field $cckfield['multiple'].
This field contains a "zero" for 1-valued fields, and "one" for unlimited lenght, so the test applyed here was wrong.
I have created a patch and attached the unified diff file.
I found the same error on 1.6 version.
Comment | File | Size | Author |
---|---|---|---|
clientside_validation_patch.diff | 1020 bytes | jsmolina | |
Comments
Comment #1
attiks CreditAttribution: attiks commentedIt should already be fixed in the latest dev version, can you try that one
Comment #2
jsmolina CreditAttribution: jsmolina commentedYes, it seems fixed on dev. Thank you attiks
Comment #3
attiks CreditAttribution: attiks commentedthanks for the patch