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

Minor refactor of 'Pending' parameter for processMembership #15124

Merged

Conversation

mattwire
Copy link
Contributor

Overview

In form postProcess functions for membership we pass a "pending" flag if the contribution status is pending. However, it's a bit confusing and could be simplified. This is a first step.

Before

$pending variable being set a long way away from intended use.

After

$pending variable being set closer to intended use. No longer passed via postProcessMembership()

Technical Details

Simple refactor to simplify code. No functional change.

Comments

@michaelmcandrew Per our call, can you review?

@civibot
Copy link

civibot bot commented Aug 23, 2019

(Standard links)

@civibot civibot bot added the master label Aug 23, 2019
@eileenmcnaughton
Copy link
Contributor

Thanks for breaking this out into a reviewable chunk @mattwire - I went through it & agree this is the same effect just a little clearer

@eileenmcnaughton eileenmcnaughton merged commit 98af96f into civicrm:master Aug 23, 2019
@samuelsov
Copy link
Contributor

This cause a regression on translated site with translated "Pending" status being not found.
I will open a new PR for this.

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.

3 participants