From b79332bf1c4a5b4e9f5d2ab0213b389013d050c9 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 20 Apr 2023 13:21:33 +1000 Subject: [PATCH] dev/core#4247 Ensure that Membership values are populated to prevent fatal error on formatting start date --- CRM/Batch/Form/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Batch/Form/Entry.php b/CRM/Batch/Form/Entry.php index b8186c8ef5..7a4a7fe715 100644 --- a/CRM/Batch/Form/Entry.php +++ b/CRM/Batch/Form/Entry.php @@ -927,7 +927,7 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form { protected function emailReceipt($form, &$formValues): bool { $membership = new CRM_Member_BAO_Membership(); $membership->id = $this->getCurrentRowMembershipID(); - $membership->fetch(); + $membership->find(TRUE); // @todo figure out how much of the stuff below is genuinely shared with the batch form & a logical shared place. if (!empty($formValues['payment_instrument_id'])) { $paymentInstrument = CRM_Contribute_PseudoConstant::paymentInstrument(); -- 2.25.1