Cannot add a custom block with a block description already used by a non-reusable block

Created on 12 May 2019, about 5 years ago
Updated 11 July 2023, 12 months ago

Problem/Motivation

To reproduce:

Using Drupal 8.8.x, Standard

  • Enable Layout Builder and override on Basic page
  • Add a node
  • Override the node layout and add a Basic block inline block with the title Testing
  • Save the layout.
  • Add a new block on admin/structure/block/block-content and use Testing as block description.

Current behaviour:

You will now get the error: A custom block with block description Testing already exists.

However, since the block is non-reusable and a composite of that node it will not be listed in the Custom block library.

Expected behaviour:

The block should have been created.

Layout Builder / non-reusable blocks seems to ignore the UniqueField constraint on the label (which is probably correct) but it should not conflict with reusable content blocks because they are distinguished.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: duplicate

Version

9.5

Component
Block contentΒ  β†’

Last updated 4 days ago

Created by

πŸ‡ΈπŸ‡ͺSweden johnwebdev

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • First commit to issue fork.
Production build 0.69.0 2024