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.
Whenever you create a new component, you get this error:
Notice: Undefined index: name in webform_component_defaults() (line 1080 of sites/all/modules/webform/includes/webform.components.inc).
This seems to have been introduced in #1287382: Use invisible instead of non-existent field labels for accessibility.
Comment | File | Size | Author |
---|---|---|---|
#1 | webform_title_attribute-2020705.patch | 1.17 KB | quicksketch |
Comments
Comment #1
quicksketchIt looks like this was added in an attempt to meet this requirement:
But what ended up happening in that issue is that the title attribute ended up getting set on ALL components all the time. That was unneccessary, since only the fields that didn't have labels displayed where the ones intended to get title attributes. This patch moves the logic to theme_webform_element() and makes it have the correct behavior.
Comment #2
quicksketchCommitted.