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

Only call transitionComponents when transitioning pending/pay later to completed #26228

Merged
merged 1 commit into from
May 22, 2023

Conversation

eileenmcnaughton
Copy link
Contributor

Transition components returns before doing anything if the status is not completed or the previous status is not pending or partially paid. This deprecated function is only called from 2 places so this switches to calling conditionally - which will help us to switch to calling Payment.create in those places....

@seamuslee001 this is the mergeable part of the PR I pinged you from

…o completed

Rather than early return when called in error, don't call it
@civibot
Copy link

civibot bot commented May 16, 2023

(Standard links)

@civibot civibot bot added the master label May 16, 2023
@eileenmcnaughton
Copy link
Contributor Author

@mattwire are you able to change this - it just calls the function conditionally instead of doing an early exit, thus making it clearer the circumstances in which this legacy path still kicks in

@mattwire mattwire merged commit dbcbdf9 into civicrm:master May 22, 2023
@eileenmcnaughton eileenmcnaughton deleted the add_pay branch May 22, 2023 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants