Participant - Translate untranslated string
authorcolemanw <coleman@civicrm.org>
Mon, 16 Oct 2023 11:48:29 +0000 (07:48 -0400)
committercolemanw <coleman@civicrm.org>
Mon, 16 Oct 2023 11:48:29 +0000 (07:48 -0400)
CRM/Event/BAO/Participant.php

index 9018edaec5ce39f874763885e53f141cff8aed3d..dedf7c5c61424cff659e9a5b860f3cdf69a9c8ce 100644 (file)
@@ -1744,8 +1744,8 @@ WHERE    civicrm_participant.contact_id = {$contactID} AND
     $contactId = CRM_Core_DAO::getFieldValue('CRM_Event_BAO_Participant', $participantId, 'contact_id');
 
     $date = CRM_Utils_Date::currentDBDate();
-    $event = CRM_Event_BAO_Event::getEvents(0, $eventId);
-    $subject = sprintf("Registration selections changed for %s", CRM_Utils_Array::value($eventId, $event));
+    $title = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $eventId, 'title');
+    $subject = ts('Registration selections changed for %1', [1 => $title]);
 
     // activity params
     $activityParams = [