Problem/Motivation
Steps to reproduce
Enable the Editable Fields module.
Configure a view mode for node with editable fields.
Create a block that uses this view mode.
Use Layout Builder and try to add the block to a layout (e.g., for a content type or node).
Observe the error: AssertionError: Cannot load the node entity with NULL ID.
Proposed resolution
The patch adds a defensive check in the EditableFields form builder. It ensures that the entity is valid and has an ID before attempting to load it. This avoids triggering the core assertion when rendering blocks inside Layout Builder (before the entity exists).
| Comment | File | Size | Author |
|---|---|---|---|
| editablefields_layout_builder_critical_error_fixed.patch | 2.41 KB | glu2006 |
Issue fork editablefields-3539126
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments