Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've tried validation_states sub-module and got an error:
Notice: Undefined index: #name in clientside_validation_states_regular() (line 37 of .../clientside_validation/clientside_validation_states/clientside_validation_states.module).
I suppose the #name property shouldn't be there as it uses only in button, submit form elements (according to FAPI)
Comment | File | Size | Author |
---|---|---|---|
#1 | clientside_validation_states_radios-1879590-1.patch | 1.36 KB | sergey_panchenko |
Comments
Comment #1
sergey_panchenko CreditAttribution: sergey_panchenko commentedThis issue can be reproduce when Form API states added to the container or wrapper that's why #name attribute can not be found. Here is the patch that loops through all child elements and creates js rules for each of them. This issue is also linked to https://www.drupal.org/project/clientside_validation/issues/2914383. Kindly review.
Comment #2
sergey_panchenko CreditAttribution: sergey_panchenko commented