No nid available in _layout_builder_modal_dialog_options() on manage layout page causing an error

Created on 12 September 2023, over 1 year ago

Problem/Motivation

I am getting this error when visiting the manage layout page for a content type (not an individual node)

Error: Call to a member function get() on null in _layout_builder_modal_dialog_options() (line 109 of modules/contrib/layout_builder_modal/layout_builder_modal.module).

Steps to reproduce

Visit e.g. /admin/structure/types/manage/page/display/default

Proposed resolution

Patch attached

Remaining tasks

Review

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Needs review

Version

1.2

Component

Code

Created by

🇬🇧United Kingdom drOptimum

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

Comments & Activities

Production build 0.71.5 2024