-
-
Notifications
You must be signed in to change notification settings - Fork 821
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
Clean up parameters in add payment form #28479
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
@eileenmcnaughton test fails relate |
CRM_Contribute_Form_AdditionalPaymentTest::testAddPaymentForPartiallyPaidContribution /home/homer/buildkit/build/build-1/web/sites/all/modules/civicrm/CRM/Contribute/Form/AdditionalPayment.php:330 |
086504c
to
52b7813
Compare
cool - heaps of tests on it - hopefully that casting fixes |
mixin test fails only this time - test this please |
test fail unrelated test this please [PHP Warning] Undefined array key "name" at /home/homer/buildkit/build/buil |
Overview
Clean up parameters in add payment form
Before
The code in this form was copied from another form (back when the form was created). A lot of the code is for the contribution to be created - but this form never interacts with the contribution create/update method - it only calls Payment.create - hence making up an invoiceID & passing it to doPayment & never using it is unhelpful. LIkewise calling the function to format contribution custom fields
After
The fields passed to the Payment.create are assembled in one place so it is clear where they are coming from
Technical Details
I'm trying to fix the fact this form doesn't create the billing address - but fighting with confusing code
Comments