GDPR removal task failing in D10 in eventDispatcher->dispatch()

Created on 7 September 2023, over 1 year ago
Updated 10 April 2024, 10 months ago

Problem/Motivation

Running GDPR removal task fails on incorrect parameters for eventDispatcher->dispatch() as they are sent in incorrect order

Steps to reproduce

Create RTF request
Go to GDPR tasks and try to execute task that you just created

Proposed resolution

Change in gdpr\modules\gdpr_tasks\src\Form\TaskActionsForm.php as follows

$this->eventDispatcher->dispatch(RightToBeForgottenCompleteEvent::EVENT_NAME, new RightToBeForgottenCompleteEvent($email));
to
$this->eventDispatcher->dispatch(new RightToBeForgottenCompleteEvent($email), RightToBeForgottenCompleteEvent::EVENT_NAME);

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇸🇰Slovakia matus grinvalsky

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024