forked from civicrm/civicrm-core
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unreleased regression where processors using getPaymentDescriptio…
…n get a fatal We added the new property bag in civicrm#15697 but in the back & forth the call to the function getDescription was retained but the function was removed. This would leave the core processor that calls it (Paypal std) with a fatal. The known external processor using it (Omnipay) also hits a notice because the signature changed ($params became optional). From the Omnipay pov I think it makes sense just to stop overriding the function - hence I am sneaking a tiny change into this to make that possible. Note the doPayment function ensures that propertyBag is set. There is a small chance that an external processor is fully overriding doPayment AND calling this - that would be the case for Omnipay except I'll remove the override in conjunction with this - so I've added a few lines to ensure it is set. Note the test would fail with the changes to Payment_Dummmy & not the changes to Core_Payment so it provides test cover
- Loading branch information
1 parent
292da97
commit e147fd7
Showing
3 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters