From 4975b4027301f204a103d07bde9465bb00404211 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 19 Dec 2023 01:19:41 +1300 Subject: [PATCH] Fix some notices on the Contribution ThankYou page --- CRM/Contribute/Form/Contribution/ThankYou.php | 6 ++++++ templates/CRM/Contribute/Form/Contribution/ThankYou.tpl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/ThankYou.php b/CRM/Contribute/Form/Contribution/ThankYou.php index 157d83827f..a7faee599a 100644 --- a/CRM/Contribute/Form/Contribution/ThankYou.php +++ b/CRM/Contribute/Form/Contribution/ThankYou.php @@ -102,6 +102,9 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont if ($this->getProductID()) { $this->buildPremiumsBlock(FALSE, $option); } + else { + $this->assign('products'); + } $params = $this->_params; $this->assign('getTaxDetails', (bool) $this->order->getTotalTaxAmount()); @@ -128,6 +131,9 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont $fieldTypes[] = CRM_Core_BAO_UFGroup::getContactType($this->_values['honoree_profile_id']); $this->buildCustom($this->_values['honoree_profile_id'], 'honoreeProfileFields', TRUE, 'honor', $fieldTypes); } + else { + $this->assign('honoreeProfileFields'); + } $qParams = "reset=1&id={$this->_id}"; //pcp elements diff --git a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl index cca5cf38c0..e283e39bc0 100644 --- a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl +++ b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl @@ -315,6 +315,6 @@ {if $isShare} {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="$qParams" a=1 fe=1 h=1}{/capture} - {include file="CRM/common/SocialNetwork.tpl" url=$contributionUrl title=$title pageURL=$contributionUrl emailMode=false} + {include file="CRM/common/SocialNetwork.tpl" url=$contributionUrl title=false pageURL=$contributionUrl emailMode=false} {/if} -- 2.25.1