From 230ba3754207d2664fb66e20d3616ed948b49350 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 16 Nov 2023 11:36:56 +1100 Subject: [PATCH] [REF] Fix Smarty Notice Errors on Contribution Edit --- CRM/Contribute/BAO/Contribution.php | 3 +++ templates/CRM/Contribute/Form/AdditionalPayment.tpl | 3 --- templates/CRM/Contribute/Form/Contribution.tpl | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 16412b14fe..8eb7f8ad56 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -1064,6 +1064,9 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution im if ($paidByName === 'Check') { $val['check_number'] = $resultDAO->check_number; } + else { + $val['check_number'] = NULL; + } $rows[] = $val; } return $rows; diff --git a/templates/CRM/Contribute/Form/AdditionalPayment.tpl b/templates/CRM/Contribute/Form/AdditionalPayment.tpl index 6c01148419..52d54ec903 100644 --- a/templates/CRM/Contribute/Form/AdditionalPayment.tpl +++ b/templates/CRM/Contribute/Form/AdditionalPayment.tpl @@ -107,9 +107,6 @@ {literal}