-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
CRM-20432: Change Membership status to current when related contribution payment is recorded from pending status. #11125
Conversation
Can one of the admins verify this patch? |
@agilewarealok I cannot replicate this bug in dmaster, please check my screencast below: |
@monishdeb I've removed the patch which was updating the membership status and kept the Unit test as it is. I think that would be helpful to include. |
Absolutely, thanks for adding UT to ensure the fix. Will merge it on test build pass |
@agilewarealok there is a related test build failure - https://test.civicrm.org/job/CiviCRM-Core-PR/17601/ And I agree with this failure that membership status should be |
@monishdeb so what is your recommendation here? Is it to fix the #11006 logic as part of this PR? |
No the #11006 logic is correct. So I am suggesting that 'Current' should be changed to 'New' here https://github.com/civicrm/civicrm-core/pull/11125/files#diff-ec7ce0ba112f5e88dc1d12b6972e09f5R220. |
@monishdeb Pushed the code with suggested changes. |
@agilewarealok great :) One last thing ..can you rebase your PR to remove the false merge commit - 44210fe Steps to rebase:
|
…ion payment is recorded from pending status.
…ing the Membership status when Completing Contribution payment.
44210fe
to
154bef4
Compare
@monishdeb I hope it looks good now :) |
Indeed :) merged |
Thanks for your work @agilewarealok |
Overview
Pending Contributions which then have a payment recorded are marked completed but do not trigger the related Membership to become current. Membership status remains pending.
Follow the steps to reproduce the bug:
Before
Recording payment did not update Membership status to current from Pending.
After
It now works as expected, when a pending contribution payment is recorded we update the Membership status to Current.
Technical Details
We've created a unit test for this to prevent failing the above case.
Agileware Ref: CIVICRM-550