🐛 fix bug: participants not added to mailing list

This commit is contained in:
Marc Koch 2025-04-01 18:16:13 +02:00
parent a94a9baf4c
commit aa31259b40
Signed by: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -223,7 +223,7 @@ function mailinglistsync_civicrm_post(string $op, string $objectName, int $objec
->addWhere('id', '=', $objectId)
->execute()
->first()['event_id'];
$mailingList = new GroupMailingList($eventId);
$mailingList = new EventMailingList($eventId);
// Check permission to alter event mailing list
if ($mailingList->isEnabled() && !CRM_Core_Permission::check('manage_event_mailinglists')) {