Setting allowed content block types to all does not take effect

Created on 22 January 2025, about 1 month ago

Problem/Motivation

If checkbox "All" for setting allowed content block types is ticked without ticking any of the content types (so that configuration array CONTENT_TYPE_allowed_content_block_types has only value 'content-block/all'), content blocks are not visible on Gutenberg editor.

Steps to reproduce

1. Navigate to edit some content type eg. /admin/structure/types/manage/page
2. Tick Gutenberg experience -> Allowed content block types -> All
3. Create content block type (/admin/structure/block-content/add)
4. Create content block of the same type (/block/add)
5. Navigate to edit content with Gutenberg editor. It must be the same type as in step 1.
6. Look for the block created in step 4.

Proposed resolution

Take value 'content-block/all' into account inside BlocksController.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇫🇮Finland jessesivonen

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