From: Eileen McNaughton Date: Tue, 28 Nov 2023 20:30:19 +0000 (+1300) Subject: Make undefined property local variable X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2f33f74fcf5293cd841f600bbc11e0749a2ec8a2;p=civicrm-core.git Make undefined property local variable --- 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,