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'm using Multiple Value Widget in a complex setup, where I have multiple nested field collections with unlimited number of occurrences , and the most inner field collection is rendered using MVW. Unfortunately, the module fails to load for more than one occurrence of the most outer field collection. The cause is that an ID attribute for a wrapper DIV generated by MVW is not guaranteed to be unique.
Comment | File | Size | Author |
---|---|---|---|
#1 | multiple_value_widget-wrapper_id_not_unique-2369063-1.patch | 873 bytes | lklimek |
Comments
Comment #1
lklimek CreditAttribution: lklimek commentedComment #2
Chi CreditAttribution: Chi commentedif (isset($element['#id'])) {
Do we really need this condition? Is the #id key optional? How can we guarantee uniqueness of the id attribute when #id is missing?