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.
Problem/Motivation
So far I've only observed this error when using Webform with Config Entity Revisions, but the code in question doesn't look to see if the index in question is actually set before trying to access it, so it seems reasonable to add a check.
Proposed resolution
In the code, check if the '#type' index is set before using it in a comparison.
Comment | File | Size | Author |
---|---|---|---|
#2 | webform-undefined_index-3202126-2.patch | 735 bytes | mandclu |
Comments
Comment #2
mandclu CreditAttribution: mandclu at Northern Commerce commentedComment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented