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

dev/core#2593 stop calling loadRelatedObjects / fix for bug #20300

Merged
merged 1 commit into from
May 16, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

dev/core#2593 stop calling loadRelatedObjects / fix for bug

Before

Unnecessary call to loadRelatedObjects can sometimes lead to IPNS failing

After

Unnecessary call removed

Technical Details

We are no longer using ids after this function so we don't need to
call that function to load them.

In addition this extacts getContribution & reflects the fact the contact_id
is only being used to warn if the contribution is not a match (in
the debug log)

Comments

@seamuslee001 this technically resolves https://lab.civicrm.org/dev/core/-/issues/2593 I believe - however the same impact would be in PaypalProIPN which I've started the same process on #20294

In addition I think another 60 lines of code could be removed with this merged

We are no longer using ids after this function so we don't need to
call that function to load them.

In addition this extacts getContribution & reflects the fact the contact_id
is only being used to warn if the contribution is not a match (in
the debug log)
@civibot
Copy link

civibot bot commented May 14, 2021

(Standard links)

@civibot civibot bot added the master label May 14, 2021
}

// CRM-19478: handle oddity when p=null is set in place of contribution page ID,
if (!empty($ids['contributionPage']) && !is_numeric($ids['contributionPage'])) {
Copy link
Contributor Author

@eileenmcnaughton eileenmcnaughton May 14, 2021

Choose a reason for hiding this comment

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

Note that this portion (from here down) has simply been removed as $ids is no longer used from here on down (so no point populating them)

The lines above are extracted

@mattwire mattwire merged commit 17e1639 into civicrm:master May 16, 2021
@eileenmcnaughton eileenmcnaughton deleted the pp branch May 17, 2021 01:54
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