Fix some notices on the Contribution ThankYou page
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Dec 2023 12:19:41 +0000 (01:19 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Dec 2023 12:19:41 +0000 (01:19 +1300)
CRM/Contribute/Form/Contribution/ThankYou.php
templates/CRM/Contribute/Form/Contribution/ThankYou.tpl

index 157d83827fa01fa87605e2f9c85ebca26f058216..a7faee599aceda432ef2c15295fd6146476ac2fd 100644 (file)
@@ -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&amp;id={$this->_id}";
     //pcp elements
index cca5cf38c024712f3ae822493baab50080f9c629..e283e39bc09157621a4704ef8c590d77bdd3f928 100644 (file)
   </div>
   {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}
 </div>