Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.