Creating a Pagedesigner Element adds a loop on ContentEntity save

Created on 27 March 2024, 7 months ago
Updated 10 April 2024, 7 months ago

Problem/Motivation

When trying to add a new content like a page, the website broke in an endless loop.
The issue lies within the pagedesigner_presave hook, which calls PagedesignerService::addContainer which in the end create a pagedesigner container element and saves it, triggering the save of the parent entity thorugh the field_presave hook for an EntityReferenceFieldItem

Steps to reproduce

Create a new page -> ends up in 502

Proposed resolution

Re-add previous logic to add the container on new entity (see MR)

Remaining tasks

Test extensively

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇫🇷France GuillaumePacilly

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024