From 78f8aff6a1ec789c3fc0614ffdb13e10d1901def Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 5 Mar 2022 00:06:16 -0500 Subject: [PATCH] smarty/php notices --- CRM/Contribute/Form/ContributionView.php | 2 ++ CRM/Core/BAO/CustomGroup.php | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CRM/Contribute/Form/ContributionView.php b/CRM/Contribute/Form/ContributionView.php index 69022ec099..da929d3a07 100644 --- a/CRM/Contribute/Form/ContributionView.php +++ b/CRM/Contribute/Form/ContributionView.php @@ -50,6 +50,7 @@ class CRM_Contribute_Form_ContributionView extends CRM_Core_Form { $this->addExpectedSmartyVariables([ 'pricesetFieldsCount', 'pcp_id', + 'getTaxDetails', // currencySymbol maybe doesn't make sense but is probably old? 'currencySymbol', ]); @@ -153,6 +154,7 @@ class CRM_Contribute_Form_ContributionView extends CRM_Core_Form { $values['note'] = array_values($noteValue); // show billing address location details, if exists + $values['billing_address'] = ''; if (!empty($values['address_id'])) { $addressParams = ['id' => $values['address_id']]; $addressDetails = CRM_Core_BAO_Address::getValues($addressParams, FALSE, 'id'); diff --git a/CRM/Core/BAO/CustomGroup.php b/CRM/Core/BAO/CustomGroup.php index c00e866270..184ce1e6ed 100644 --- a/CRM/Core/BAO/CustomGroup.php +++ b/CRM/Core/BAO/CustomGroup.php @@ -1975,6 +1975,11 @@ SELECT IF( EXISTS(SELECT name FROM civicrm_contact_type WHERE name like %1), 1, } } else { + $form->addExpectedSmartyVariables([ + 'multiRecordDisplay', + 'groupId', + 'skipTitle', + ]); $form->assign_by_ref("{$prefix}viewCustomData", $details); return $details; } -- 2.25.1