From: Seamus Lee Date: Thu, 16 Nov 2023 00:36:56 +0000 (+1100) Subject: [REF] Fix Smarty Notice Errors on Contribution Edit X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=230ba3754207d2664fb66e20d3616ed948b49350;p=civicrm-core.git [REF] Fix Smarty Notice Errors on Contribution Edit --- 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}