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

Command icon 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

Matus Grinvalsky created an issue. See original summary.

Rajeshreeputra made their first commit to this issue’s fork.

rajeshreeputra’s picture

Version: 3.0.0 » 3.0.x-dev
Priority: Normal » Major
Status: Active » Needs review
rajeshreeputra’s picture

Priority: Major » Normal
jaapjan’s picture

Status: Needs review » Reviewed & tested by the community

Thank you. Works for me in D10. Approach is also good. Marking as RTBC.

ahmetburkan’s picture

It works here too. Can we merge this?

  • Rajeshreeputra committed 947a6866 on 3.0.x
    Issue #3386010 by Rajeshreeputra, Matus Grinvalsky, jaapjan, ahmetburkan...
rajeshreeputra’s picture

Status: Reviewed & tested by the community » Fixed

Merged release to follow shortly!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.