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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Heine created an issue. See original summary.

jrockowitz’s picture

Re-uploading to trigger automated tests.

  • jrockowitz committed 5a00437 on 8.x-5.x
    Issue #2868960 by Heine, jrockowitz: AND Items formatter; Invalid render...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.