From 2f54650d7f0c1c17524c1a7e2527d18c161a084a Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 28 Sep 2023 10:44:30 +1300 Subject: [PATCH] Fix title - note the setTitle applies purify --- CRM/Event/Form/Participant/Delete.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Event/Form/Participant/Delete.php b/CRM/Event/Form/Participant/Delete.php index 39c08340e3..e095d80290 100644 --- a/CRM/Event/Form/Participant/Delete.php +++ b/CRM/Event/Form/Participant/Delete.php @@ -21,6 +21,7 @@ */ class CRM_Event_Form_Participant_Delete extends CRM_Contribute_Form_AbstractEditPayment { use CRM_Event_Form_EventFormTrait; + use CRM_Contact_Form_ContactFormTrait; /** * @var int @@ -87,6 +88,7 @@ class CRM_Event_Form_Participant_Delete extends CRM_Contribute_Form_AbstractEdit */ public function preProcess(): void { $this->setAction(CRM_Core_Action::DELETE); + $this->setTitle(ts('Delete participant record for %1', [1 => $this->getContactValue('display_name')])); $contributionID = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment', $this->getParticipantID(), 'contribution_id', 'participant_id' ); -- 2.25.1