Paragraphs submodule assumes parent exists

Created on 15 April 2021, about 3 years ago
Updated 13 April 2023, about 1 year ago

Problem/Motivation

Attempting to delete a paragraph which no longer has a parent, for example using the batch cleanup provided by entity_reference_revisions module, leads to an error about calling getEntityType() on null in ParagraphPersistance::purge().

Steps to reproduce

Easiest way is to programmatically create a paragraph without a parent, save it, then try to delete it while the module is active.

Proposed resolution

Check if the parent exists before attempting to

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΈπŸ‡ͺSweden TwoD Sweden

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