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

Remove unreachable validation #26222

Merged
merged 1 commit into from
May 15, 2023
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Remove unreachable validation

Before

Some time ago we fixed it such that only Pending and Completed statuses are in the drop box for contribution_status_id. This fragment of code handles an edge case that is no longer reachable - ie when the value is Failed and some other confusing stuff is true

After

poof

Technical Details

See

ts('Payment Status'), CRM_Contribute_BAO_Contribution_Utils::getPendingAndCompleteStatuses()

Comments

Some time ago we fixed it such that only Pending and Completed statuses are in
the drop box for contribution_status_id. This fragment of code handles an edge case
that is no longer reachable - ie when the value is Failed and some other confusing stuff
is true
@civibot
Copy link

civibot bot commented May 15, 2023

(Standard links)

@civibot civibot bot added the master label May 15, 2023
@yashodha
Copy link
Contributor

@eileenmcnaughton looks good, merging this PR

@yashodha yashodha merged commit 612e363 into civicrm:master May 15, 2023
@eileenmcnaughton eileenmcnaughton deleted the extract branch May 15, 2023 06:40
@eileenmcnaughton
Copy link
Contributor Author

thanks @yashodha

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