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.
Steps to reproduce:
Have a webform containing checkboxes with 2 options
Set it's Item format to "value" and Items format to "and"
# 1:
Submit the webform, but select only one option.
View the submission in the results tab on the webform. This triggers the following error:
User error: "0" is an invalid render array key in Drupal\Core\Render\Element::children()
#2
Submit the same webform, but select both option.
View the submission in the results tab on the webform. You'll see an extra "and" after the second value:
[value1] and [value2] and.
Comment | File | Size | Author |
---|---|---|---|
#2 | do-webform-element-base-invalid-render-key.patch | 822 bytes | jrockowitz |
| |||
do-webform-element-base-invalid-render-key.patch | 822 bytes | Heine | |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedRe-uploading to trigger automated tests.
Comment #4
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commented