Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
CDNTaxReceipts
Commits
a229829d
Commit
a229829d
authored
Jan 31, 2022
by
DaveD
Browse files
deprecated parameters
parent
811c58f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
cdntaxreceipts.php
View file @
a229829d
...
...
@@ -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'
]))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment