From 5169badf76acd648cf30367a90f082500e773af6 Mon Sep 17 00:00:00 2001 From: Samuele Masetto Date: Tue, 14 Feb 2023 09:10:40 +0100 Subject: [PATCH] fix empty values of Note on Import contribution --- CRM/Contribute/Import/Parser/Contribution.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contribute/Import/Parser/Contribution.php b/CRM/Contribute/Import/Parser/Contribution.php index 535c955621..33309215f8 100644 --- a/CRM/Contribute/Import/Parser/Contribution.php +++ b/CRM/Contribute/Import/Parser/Contribution.php @@ -810,6 +810,9 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Import_Parser { * @throws \CRM_Core_Exception */ protected function processNote(int $contributionID, int $contactID, array $noteParams): void { + if (!$noteParams['note']) { + return; + } $noteParams = array_merge([ 'entity_table' => 'civicrm_contribution', 'entity_id' => $contributionID, -- 2.25.1