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

MAE-494: Fix payment batch submission after CiviCRM 5.35 upgrade #230

Merged

Conversation

omarabuhussein
Copy link
Member

Overview

Fixing payment batch submission after CiviCRM 5.35 upgrade

Technical Details

Manual direct debit is using the core method "transitionComponentWithReturnMessage" that is in the Contribution BAO class, though this method is now removed in CiviCRM core (see civicrm/civicrm-core#18961 for more info), and thus it results in failure when submitting the payment batch.

Here I replaced the calls for this method with "transitionComponents" method, given that the former is basically calling it but just with returning some extra feedback messages, and that these feedback messages are not even used or showed back to the user in this extension, so it is safe to just call "transitionComponents" instead.

Manual direct debit is using the core method "transitionComponentWithReturnMessage" that is in the Contribution BAO class, though this method is now removed in core (see civicrm/civicrm-core#18961 for more info), and thus it result in failure when submitting the payment batch.

Here I replaced the calls for this method with "transitionComponents",
given that the former is basicly calling it but just return some extra
feedback messages, and that these returned feedback messages are not
even used or showed back to user in this extension, so it is safe to
just call "transitionComponents" instead.
@omarabuhussein omarabuhussein changed the base branch from master to MAE-483-workstream-civi5.35 March 12, 2021 16:58
When using the API v3 `getvalue` action on any entity, it will return
the return value directly, but some places in direct debit importer
assumed that it would return the value indexed by the `result` key.

Here I am changing that so results from this API action are used directly.
@omarabuhussein omarabuhussein merged commit fbd2a15 into MAE-483-workstream-civi5.35 Mar 18, 2021
@omarabuhussein omarabuhussein deleted the MAE-494-payment-batch-issue branch March 18, 2021 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants