Allowed type with no allowed children causes exception

Created on 13 October 2025, 12 days ago

Problem/Motivation

If you go to the book settings page, add a new allowed type, but do not select anything for the allowed children, save, and then try to save the settings page again, an exception is thrown.

Steps to reproduce

On fresh d11 book 3.x install

Navigate to /admin/structure/book/settings.

  1. Under Allowed content types and their children, choose a new type, but do not select anything for the allowed child type.
  2. Save.
  3. Go back to the settings page.
  4. Try to save again.
  5. An exception is thrown.

Proposed resolution

The problem is that "null" is being saved to the config for allowed child types but a string is expected.

Remaining tasks

Make allowed child types required?

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024