Commit 546ff4db authored by DaveD's avatar DaveD
Browse files

fix for changes in params sent to hook in 5.47

parent f0741877
......@@ -351,8 +351,8 @@ function cdntaxreceipts_civicrm_alterMailParams(&$params, $context) {
$msg_template_types = array('contribution_online_receipt', 'contribution_offline_receipt');
if (isset($params['groupName'])
&& $params['groupName'] == 'msg_tpl_workflow_contribution'
$groupName = isset($params['groupName']) ? $params['groupName'] : (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)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment