forms_steps_entity_predelete deletes wrong workflows

Created on 1 July 2022, almost 2 years ago
Updated 9 January 2024, 6 months ago

Problem/Motivation

When forms_steps_entity_predelete is triggered it gets workflow entities by adding only entity_id condition to the entity query. Different types of entities may have the same ids, which may cause deleting of wrong workflow: e.g. you are deleting user with id 1. forms_steps_entity_predelete may select node with id 1 instead of user.

Proposed resolution

We should also check by entity_type to ensure that we are not deleting other worflows.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine id.aleks

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