From a229829d099fdfec05ee5abac3b119e790092b98 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Mon, 31 Jan 2022 10:37:58 -0500 Subject: [PATCH] deprecated parameters --- cdntaxreceipts.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cdntaxreceipts.php b/cdntaxreceipts.php index 63a4b6a..3eaff63 100644 --- a/cdntaxreceipts.php +++ b/cdntaxreceipts.php @@ -351,10 +351,11 @@ function cdntaxreceipts_civicrm_alterMailParams(&$params, $context) { $msg_template_types = array('contribution_online_receipt', 'contribution_offline_receipt'); + // Both of these are replaced by the same value of 'workflow' in 5.47 $groupName = isset($params['groupName']) ? $params['groupName'] : (isset($params['workflow']) ? $params['workflow'] : ''); + $valueName = isset($params['valueName']) ? $params['valueName'] : (isset($params['workflow']) ? $params['workflow'] : ''); if (($groupName == 'msg_tpl_workflow_contribution' || $groupName == 'contribution_online_receipt' || $groupName == 'contribution_offline_receipt') - && isset($params['valueName']) - && in_array($params['valueName'], $msg_template_types)) { + && in_array($valueName, $msg_template_types)) { // get the related contribution id for this message if (isset($params['tplParams']['contributionID'])) { -- GitLab