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.

CommentFileSizeAuthor
clientside_validation_patch.diff1020 bytesjsmolina
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

attiks’s picture

It should already be fixed in the latest dev version, can you try that one

jsmolina’s picture

Yes, it seems fixed on dev. Thank you attiks

attiks’s picture

Status: Needs review » Fixed

thanks for the patch

Status: Fixed » Closed (fixed)

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