MAE-501: Fix unable to send direct debit notifications. #231
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
When using Find contributions / Find memberships to search for contribution or memberships, Manual Direct Debit extensions provide a feature to send direct debit notifications on the actions using Manual Direct Templates.
The implementation was extended CiviCRM core functions which were moved from the class to traits since CiviCRM 5.34 here.
This PR refactors the code in the Manual Direct Debit to align with the changes in the CiviCRM core.
Before
Error was present when sending email from "Send Direct Debit Notifications" actions when using Direct Debit templates or CiviCRM templates.
After
Email can be sent when using Send Direct Debit Notifications when using either
Technical Details
This PR also takes an opportunity to refactor codes to fix or address as the following: