From c6cd20f9b2bc1d84717209c4cc72c1d527261218 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 6 Sep 2023 20:10:20 +1200 Subject: [PATCH] Fix enotice (possible regression) It's clear in the function that lineItem is only defined for add - I hit the enotice editing the participant to be paid. Not sure if this is a regression but there was a related one fixed in 5.65 or 5.64 so targetting the rc --- CRM/Event/Form/Participant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 2f931a217b..f463f1b8c3 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -1350,7 +1350,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment } if (!empty($params['send_receipt'])) { - $result = $this->sendReceipts($params, $contributionParams['total_amount'], $customFields, $participants, $lineItem[0], $additionalParticipantDetails); + $result = $this->sendReceipts($params, $contributionParams['total_amount'], $customFields, $participants, $lineItem[0] ?? [], $additionalParticipantDetails); } // set the participant id if it is not set -- 2.25.1