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

[REF] Move pcpNotifyOwner to ContributionSoft #20522

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

[REF] Move pcpNotifyOwner to ContributionSoft

This is cleanup towards #19096 in that
it gets the function out of the form layer and also makes it so it does
not require a BAO.

Before

contribution BAO required as a param

After

contributionID required as a param

This does add one extra db lookup in some cases but I think
it's pretty low volume and will mean this is not required

https://github.com/civicrm/civicrm-core/pull/19096/files#diff-4c9d0b1abe07057a4eea2b47bc627eecb95face8ed8d86c1c005312a52cca811R4271-R4273

Technical Details

A git universe check did not find any other calls to this function

Comments

test cover in testSubmitWithPCP()

@civibot
Copy link

civibot bot commented Jun 7, 2021

(Standard links)

* @throws \API_Exception
* @throws \CRM_Core_Exception
*/
public static function pcpNotifyOwner(int $contributionID, array $contributionSoft): void {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

function moved & param switched from contribution to contribution id (I could break this into 2 prs?)

This is cleanup towards civicrm#19096 in that
it gets the function out of the form layer and also makes it so it does
not require a BAO. This does add one extra db lookup in some cases but I think
it's pretty low volume and will mean this is not required

https://github.com/civicrm/civicrm-core/pull/19096/files#diff-4c9d0b1abe07057a4eea2b47bc627eecb95face8ed8d86c1c005312a52cca811R4271-R4273
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants