Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
f0da41da
Commit
f0da41da
authored
5 years ago
by
eileen
Browse files
Options
Downloads
Patches
Plain Diff
#1047
Fix instance of null contamination
parent
2dfe802e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Core/BAO/FinancialTrxn.php
+1
-1
1 addition, 1 deletion
CRM/Core/BAO/FinancialTrxn.php
CRM/Financial/BAO/Payment.php
+1
-1
1 addition, 1 deletion
CRM/Financial/BAO/Payment.php
with
2 additions
and
2 deletions
CRM/Core/BAO/FinancialTrxn.php
+
1
−
1
View file @
f0da41da
...
...
@@ -119,7 +119,7 @@ class CRM_Core_BAO_FinancialTrxn extends CRM_Financial_DAO_FinancialTrxn {
*
* @return \CRM_Financial_DAO_FinancialTrxn
*/
public
static
function
retrieve
(
&
$params
,
&
$defaults
)
{
public
static
function
retrieve
(
&
$params
,
&
$defaults
=
[]
)
{
$financialItem
=
new
CRM_Financial_DAO_FinancialTrxn
();
$financialItem
->
copyValues
(
$params
);
if
(
$financialItem
->
find
(
TRUE
))
{
...
...
This diff is collapsed.
Click to expand it.
CRM/Financial/BAO/Payment.php
+
1
−
1
View file @
f0da41da
...
...
@@ -121,7 +121,7 @@ class CRM_Financial_BAO_Payment {
// Get the trxn
$trxnId
=
CRM_Core_BAO_FinancialTrxn
::
getFinancialTrxnId
(
$contribution
[
'id'
],
'DESC'
);
$ftParams
=
[
'id'
=>
$trxnId
[
'financialTrxnId'
]];
$trxn
=
CRM_Core_BAO_FinancialTrxn
::
retrieve
(
$ftParams
,
CRM_Core_DAO
::
$_nullArray
);
$trxn
=
CRM_Core_BAO_FinancialTrxn
::
retrieve
(
$ftParams
);
}
}
elseif
(
$contributionStatus
===
'Pending'
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment