Missing contextual links before layout save

Created on 13 July 2022, over 2 years ago
Updated 1 March 2024, 10 months ago

Problem/Motivation

After installing, when you add a new block, or clone an existing one, the contextual links do not get replaced until your layout is saved, afterwards your contextual links appear as normal.

If you look in your network tab, it traces back to the checkAccess function. You might see something like an OutOfBoundsException: Invalid delta error appearing in your drupal logs as well.

If we additionally use $this->layoutTempstoreRepository we can get our contextual filters back. Snagged this solution from another thread over at the layout_builder_clone issue queue.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada AaronChristian Kelowna, BC

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

Merge Requests

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