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);
Issue fork gdpr-3386010
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
rajeshreeputraComment #5
rajeshreeputraComment #6
jaapjan commentedThank you. Works for me in D10. Approach is also good. Marking as RTBC.
Comment #7
ahmetburkanIt works here too. Can we merge this?
Comment #9
rajeshreeputraMerged release to follow shortly!