Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated functions in financialtrxn BAO #26057

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

mattwire
Copy link
Contributor

Overview

Replaces some deprecated functions in FinancialTrxn BAO

Before

Deprecated functions in use

After

Deprecated functions not in use

Technical Details

Comments

@civibot
Copy link

civibot bot commented Apr 12, 2023

(Standard links)

@civibot civibot bot added the master label Apr 12, 2023
@demeritcowboy
Copy link
Contributor

jenkins retest this please

&& (CRM_Utils_Array::value($contributionDetails->contribution_status_id, $statuses) != 'Completed'
|| (CRM_Utils_Array::value($contributionDetails->contribution_status_id, $statuses) != 'Pending'
&& ($contributionDetails->contribution_status_id != CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Completed')
|| ($contributionDetails->contribution_status_id != CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Pending')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These give different results if you've disabled the status, but if they've disabled Completed then lots isn't going to work anyway.

@mattwire mattwire merged commit 7b4dc6b into civicrm:master Apr 20, 2023
@mattwire mattwire deleted the financialtrxclean branch April 20, 2023 19:51
@mattwire
Copy link
Contributor Author

Merging per tag thanks @demeritcowboy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants