forms_steps_entity_predelete deletes wrong workflows

Created on 1 July 2022, over 2 years ago
Updated 9 January 2024, 10 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.71.5 2024