From 2f33f74fcf5293cd841f600bbc11e0749a2ec8a2 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 29 Nov 2023 09:30:19 +1300 Subject: [PATCH] Make undefined property local variable --- CRM/Event/Form/Task/Batch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Form/Task/Batch.php b/CRM/Event/Form/Task/Batch.php index 614696c11b..1e1b896b19 100644 --- a/CRM/Event/Form/Task/Batch.php +++ b/CRM/Event/Form/Task/Batch.php @@ -155,7 +155,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { CRM_Core_BAO_CustomField::getFields('Participant', FALSE, FALSE, NULL, NULL, TRUE) ); $customFields = CRM_Utils_Array::crmArrayMerge($customFieldsEventType, $customFields); - $this->_customFields = CRM_Utils_Array::crmArrayMerge($customFieldsEvent, $customFields); + $customFields = CRM_Utils_Array::crmArrayMerge($customFieldsEvent, $customFields); foreach ($this->_participantIds as $participantId) { $roleId = CRM_Core_DAO::getFieldValue("CRM_Event_DAO_Participant", $participantId, 'role_id'); @@ -163,7 +163,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { $eventTypeId = CRM_Core_DAO::getFieldValue("CRM_Event_DAO_Event", $eventId, 'event_type_id'); foreach ($this->_fields as $name => $field) { if ($customFieldID = CRM_Core_BAO_CustomField::getKeyID($name)) { - $customValue = $this->_customFields[$customFieldID] ?? NULL; + $customValue = $customFields[$customFieldID] ?? NULL; $entityColumnValue = []; if (!empty($customValue['extends_entity_column_value'])) { $entityColumnValue = explode(CRM_Core_DAO::VALUE_SEPARATOR, -- 2.25.1