In 9.3.x the SectionStorage in the AccessManager is no longer loaded from the temp store

Created on 10 December 2021, over 2 years ago
Updated 3 October 2023, 9 months ago

Problem/Motivation

There was a change in core 9.3.x which removed LayoutTempstoreParamConverter.
πŸ“Œ Allow section storages to be loaded via routing without loading from the tempstore Needs work

This has caused a regression in this module since the AccessManager now receives the SectionStorage from the entity, not from the temp store. Not sure yet if the regression is intentional or a bug, but we can simply work around it.

Steps to reproduce

Install Drupal 9.3.x
Try to add a new section with the layout_builder_perms_layout_per_bundle module installed.
The following error should occur:
Error: Call to a member function getThirdPartySetting() on null in Drupal\layout_builder_perms_layout_per_bundle\Plugin\LayoutBuilderPermission\EntityPermission->applies()

Proposed resolution

Make sure we load the SectionStorage from the temp store.

Remaining tasks

Write a patch
Review
Commit

User interface changes

-

API changes

-

Data model changes

-

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands seanB Netherlands

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.69.0 2024