Problem/Motivation

When registrants are deleted, only the email address and registrant ID are available in the log message.

E.g., Message would be The registrant email@yoursite.com has been deleted.

Location and referrer would contain registrant ID such as https://website.com/events/11503/registrations/30268/93ff3238-430b-4e2e-b70d-77dbfe707d2a/delete where 11503 is registrant ID.

For some debugging tasks, it would have been helpful to have event series and event instance information available as well.

Steps to reproduce

Delete a registrant via the cancellation link in a registrant email.

Proposed resolution

Add Event Series name and ID and Event Instance name and ID to the log message by updating $this->logDeletionMessage method in RegistrantDeleteForm.php.

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

chrisla created an issue. See original summary.

chrisla’s picture

Issue summary: View changes
chrisla’s picture

Updated by adding own logDeletionMessage method that will create a message like this:

The registrant email@yoursite.com from Event Series "Event series title" (ID: 1977) and Event Instance ID: 9928 has been deleted.

chrisla’s picture

Status: Active » Needs review
chrisla’s picture

Could I request a review and merge of this feature?