From 0a78e4847616231d55386947b71580f88bafb672 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 9 Nov 2023 10:56:12 +1300 Subject: [PATCH] Declare _groupTree on MembershipRenewal form --- CRM/Member/Form/MembershipRenewal.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/CRM/Member/Form/MembershipRenewal.php b/CRM/Member/Form/MembershipRenewal.php index aa002c5f6a..9cd4df5c7b 100644 --- a/CRM/Member/Form/MembershipRenewal.php +++ b/CRM/Member/Form/MembershipRenewal.php @@ -92,6 +92,17 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { */ protected $membershipTypeName = ''; + /** + * Used in the wrangling of custom field data onto the form. + * + * There are known instances of extensions altering this array + * in order to affect the custom data displayed & there is no + * alternative recommendation. + * + * @var array + */ + public $_groupTree; + /** * Set entity fields to be assigned to the form. */ @@ -378,9 +389,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { $this->add('textarea', 'receipt_text', ts('Renewal Message')); // Retrieve the name and email of the contact - this will be the TO for receipt email - list($this->_contributorDisplayName, - $this->_contributorEmail - ) = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contactID); + [$this->_contributorDisplayName, $this->_contributorEmail] = CRM_Contact_BAO_Contact_Location::getEmailDetails($this->_contactID); $this->assign('email', $this->_contributorEmail); // The member form uses emailExists. Assigning both while we transition / synchronise. $this->assign('emailExists', $this->_contributorEmail); @@ -691,7 +700,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form { } } - list($this->isMailSent) = CRM_Core_BAO_MessageTemplate::sendTemplate( + [$this->isMailSent] = CRM_Core_BAO_MessageTemplate::sendTemplate( [ 'workflow' => 'membership_offline_receipt', 'from' => $receiptFrom, -- 2.25.1