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

[REF] Param simplification #19406

Merged
merged 2 commits into from
Jan 18, 2021
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

On looking at this param it can only be reached if recur->id is set and the other criteria can be
squashed to an empty check

Before

What is the old user-interface or technical-contract (as appropriate)?
For optimal clarity, include a concrete example such as a screenshot, GIF (LICEcap, SilentCast), or code-snippet.

After

$autoRenewMembership = FALSE;
      if ($recur->id &&
        isset($ids['membership']) && $ids['membership']
      ) {
        $autoRenewMembership = TRUE;
      }

Technical Details

$autoRenewMembership = !empty($ids['membership'])

Comments
----------------------------------------

On looking at this param it can only be reached if recur->id is set and the other criteria can be
squashed to an empty check
@civibot
Copy link

civibot bot commented Jan 17, 2021

(Standard links)

@civibot civibot bot added the master label Jan 17, 2021
@seamuslee001
Copy link
Contributor

Makes sense MOP

@eileenmcnaughton
Copy link
Contributor Author

api.v4.Entity.ConformanceTest.testConformance with data set "Relationship" is a new intermittent false-fail due to @colemanw recently adding a pseudoconstant - the issue is the test creates 'random' relationships, some of which are invalid now. Merging & ignoring

@eileenmcnaughton eileenmcnaughton merged commit 9345720 into civicrm:master Jan 18, 2021
@eileenmcnaughton eileenmcnaughton deleted the param branch January 18, 2021 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants