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
sluc23
mjwshared
Commits
59c27f91
Commit
59c27f91
authored
May 09, 2021
by
mattwire
Browse files
Code cleanup
parent
685d8999
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRM/Core/Payment/MJWIPNTrait.php
View file @
59c27f91
...
...
@@ -94,10 +94,12 @@ trait CRM_Core_Payment_MJWIPNTrait {
* If not set, we respect the value set on the ContributionRecur entity (for recurring contributions)
* or the value set on the ContributionPage entity (for non-recurring contributions).
*
* @param int $contributionID
*
* @return int
* @throws \CiviCRM_API3_Exception
*/
public
function
getSendEmailReceipt
(
$contributionI
d
)
{
public
function
getSendEmailReceipt
(
int
$contributionI
D
)
{
if
(
isset
(
$this
->
is_email_receipt
))
{
return
(
int
)
$this
->
is_email_receipt
;
}
...
...
@@ -117,7 +119,7 @@ trait CRM_Core_Payment_MJWIPNTrait {
try
{
$this
->
is_email_receipt
=
\
Civi\Api4\Contribution
::
get
(
FALSE
)
->
addSelect
(
'contribution_page.is_email_receipt'
)
->
addWhere
(
'id'
,
'='
,
$contributionI
d
)
->
addWhere
(
'id'
,
'='
,
$contributionI
D
)
->
execute
()
->
first
()[
'contribution_page.is_email_receipt'
]
??
0
;
}
...
...
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