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

Fix Invoice class to not call validateData #18372

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Sep 5, 2020

Overview

This avoids calling the BaseIPN validateData class from Invoice.php and calls the narrower
loadRelatedObjects to avoid having to change the code around it

Before

Hacky use of BaseIPN

After

Somewhat less hacky call to loadRelatedObjects

Technical Details

Per

'display_name' => $contribution->_relatedObjects['contact']->display_name,
display_name is accessed from relatedObjects so I added that check to the test

Comments

@civibot
Copy link

civibot bot commented Sep 5, 2020

(Standard links)

@civibot civibot bot added the master label Sep 5, 2020
This avoids calling the BaseIPN validateData class from Invoice.php and calls the narrower
loadRelatedObjects to avoid having to change the code around it
@KarinG
Copy link
Contributor

KarinG commented Sep 8, 2020

I was going to look at this now but I see it's already been merged :-)

@eileenmcnaughton
Copy link
Contributor Author

@KarinG please still test - I don't think @mattwire tested it

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.

3 participants