Same item added to the queue multiple times

Created on 20 June 2024, 3 months ago

Problem/Motivation

The same item is added to the queue in case a field is reused between bundles. There is a missing bundle check.

Steps to reproduce

1. Reuse a field between entity bundles. For example:

paragraph.image.field_image
paragraph.person.field_image

2. Delete an image entity referenced by one of the fields.

problem: the same item is added to the queue twice

Proposed resolution

make sure the parent entity bundle matches the field definition bundle here:
https://git.drupalcode.org/project/entity_reference_purger/-/blob/1.0.0-...

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇭🇺Hungary Pasqualle 🇭🇺 Budapest

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

Comments & Activities

Production build 0.71.5 2024