From f43890a4104bd0c9aea2da206e908cbc6828dc8c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 25 Sep 2016 16:43:18 -0400 Subject: [PATCH] Fix undefined variable --- CRM/Contribute/Form/Task/Batch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Task/Batch.php b/CRM/Contribute/Form/Task/Batch.php index 2f3a4c4b5c..4fb233d52f 100644 --- a/CRM/Contribute/Form/Task/Batch.php +++ b/CRM/Contribute/Form/Task/Batch.php @@ -143,6 +143,7 @@ class CRM_Contribute_Form_Task_Batch extends CRM_Contribute_Form_Task { foreach ($this->_contributionIds as $contributionId) { $typeId = CRM_Core_DAO::getFieldValue("CRM_Contribute_DAO_Contribution", $contributionId, 'financial_type_id'); foreach ($this->_fields as $name => $field) { + $entityColumnValue = array(); if ($customFieldID = CRM_Core_BAO_CustomField::getKeyID($name)) { $customValue = CRM_Utils_Array::value($customFieldID, $customFields); if (!empty($customValue['extends_entity_column_value'])) { @@ -152,7 +153,7 @@ class CRM_Contribute_Form_Task_Batch extends CRM_Contribute_Form_Task { } if (!empty($entityColumnValue[$typeId]) || - CRM_Utils_System::isNull($entityColumnValue[$typeId]) + CRM_Utils_System::isNull(CRM_Utils_Array::value($typeId, $entityColumnValue)) ) { CRM_Core_BAO_UFGroup::buildProfile($this, $field, NULL, $contributionId); } -- 2.25.1