Checkboxes type attribute fields do not work anymore after upgrading to 10.3.5

Created on 25 October 2024, 28 days ago

Problem/Motivation

Supporting checkboxes was introduced in this module's issue queue #3238246 Support multivalue checkboxes attribute elements Fixed

After Drupal 10.3.5 upgrade (basically any version after #3427177 📌 Replace calls to ::expectError*() from Drupal\Tests\Core\Render\ElementTest Fixed is committed to Drupal Core), it throws fatal error for any pages with menu item having multiple checkboxes type data:

InvalidArgumentException: "role_1" is an invalid render array key. Value should be an array but got a string. in Drupal\Core\Render\Element::children() (line 97 of core/lib/Drupal/Core/Render/Element.php).

It still supports single value checkbox, single select and radios. Seems like multi-value fields are affected.

Steps to reproduce

  • Add a checkboxes type attribute field in configuration.
  • Add a menu item with checkboxes attribute.
  • View a page that renders the menu item.
  • Bam!!!
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India Supreetam09 Kolkata

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024