Problem/Motivation
The event registration reminders go to all registered people at the moment, regardless of whether they are waitlisted or not
Proposed resolution
In file recurring_events/modules/recurring_events_registration/modules/recurring_events_reminders/recurring_events_reminders.module line: 156.
Change: $registrants = $registration_creation_service->retrieveRegisteredParties();
To: $registrants = $registration_creation_service->retrieveRegisteredParties(TRUE, FALSE);
Background info:
From recurring_events/modules/recurring_events_registration/src/RegistrationCreationService.php line 170 onwards
/**
* Retrieve all registered parties.
*
* @param bool $include_nonwaitlisted
* Whether or not to include non-waitlisted registrants.
* @param bool $include_waitlisted
* Whether or not to include waitlisted registrants.
* @param int $uid
* The user ID for whom to retrieve registrants.
*
* @return array
* An array of registrants.
*/
public function retrieveRegisteredParties($include_nonwaitlisted = TRUE, $include_waitlisted = TRUE, $uid = FALSE) { ....
Issue fork recurring_events-3535470
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
plopescCreated MR with suggested changes. Could you please confirm that works as expected?
Comment #7
pfrenssenThanks for the fix!