Execute "customProcessing" method in the "OnDelete" and "OnDeleteAll" events

Components

Labels

Description

Change the “OnDelete” and “OnDelete” events in the “kDBEventHandler” class to follow the same “$ids” variable patching approach as implemented in the “OnMassDelete” event:

Context Information

In one of the projects we’ve implemented soft-delete protection (on the first delete attempt an IsDeleted=1 flag is set instead of fully deleting the db record; on the second delete attempt the record is deleted from the database). To make it work, the “kDBEventHandler::customProcessing” method was used.

The problem is that other deletion-related events (e.g. “OnDelete” and “OnDeleteAll”) aren’t calling the “kDBEventHandler::customProcessing” method and therefore continue to delete record from the database on the first attempt.

Additional information (do not use)

None

Activity

Show:

[API] Administrator last week

User (SVN User: "alex") committed a fix to 5.2.x. Commit Message:

Fixes - Execute "customProcessing" method in the "OnDelete" and "OnDeleteAll" events

Differential Revision: https://qa.in-portal.org/D517

Fixed

Details

Priority

Assignee

Reporter

Developer

Reviewer

Change Log Group

Fixed

Change Log Message

Patch Instructions

Patches must be submitted through Phabricator.

Time tracking

1h 3m logged

Story Points

Fix versions

Created April 2, 2025 at 7:42 AM
Updated last week
Resolved last week