Impossible to edit block content with quickedit

Created on 5 February 2021, about 4 years ago
Updated 12 August 2024, 7 months ago

Problem/Motivation

It is impossible to use quickedit core module to edit content of the placed content block if there is only one display mode enabled for the content blocks.

Steps to reproduce

  • Visit /admin/structure/block/block-content/manage/basic/display and make sure none of the checkboxes are ticked in "Custom display settings" fieldset.
  • Create a fixed block and place it somewhere on the page
  • Navigate to the page with your block a hover it
  • in the contextual menu click "Quick edit"
  • Hover over block content and click

Expected result: See content edit form.
Actual result: 404 response in browser console on /editor/block_content/${ID}/body/en/?_wrapper_format=drupal_ajax

This happens because fixed block configuration have empty view mode stored, which is wrong.

Proposed resolution

Default view mode to 'full' instead of empty string.

Remaining tasks

  1. Patch - done
  2. Review
  3. Commit

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇳🇿New Zealand RoSk0 Wellington

Live updates comments and jobs are added and updated live.
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.

Production build 0.71.5 2024