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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lklimek’s picture

Title: Element ID is not guaranteed to be unique » ID attribute for wrapper is not guaranteed to be unique
Issue summary: View changes
Status: Active » Needs review
FileSize
873 bytes
Chi’s picture

Status: Needs review » Needs work

if (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?