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 or hard-code variables from previously shared function #19227

Merged
merged 2 commits into from
Dec 22, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Remove or hard-code variables from previously shared function

Before

processFormContribution(
    $params,
    $result,
    $contributionParams,
    $financialType,
    $online,
    $billingLocationID,
    $isRecur
  
  ) {

After

processFormContribution(
    $params,
    $result,
    $contributionParams,
    $financialType
  
  ) {

Technical Details

This function was separated from the shared function for cleanup.

This removes 3 variables

  • isRecur (always true)
  • billingId - this is elsewhere handled on the form
  • online (always false)

For billing id this is handled through back office form
shared functions. The handling might be slightly different but it seems
more important that the form is internally consistent with how
it creates billing addresses (between recur & non-recur) than with other forms

Comments

@civibot
Copy link

civibot bot commented Dec 16, 2020

(Standard links)

@civibot civibot bot added the master label Dec 16, 2020
This function was separated from the shared function for cleanup.

This removes 3 variables
- isRecur (always true)
- billingId - this is elsewhere handled on the form
- online (always false)

For billing id this is handled through back office form
shared functions. The handling might be slightly different but it seems
more important that the form is internally consistent with how
it creates billing addresses (between recur & non-recur) than with other forms
@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 is this one you can merge - it's more clean up of the now-not-shared function

@seamuslee001
Copy link
Contributor

This looks fine merging

@seamuslee001 seamuslee001 merged commit f0eff43 into civicrm:master Dec 22, 2020
@seamuslee001 seamuslee001 deleted the mem_form branch December 22, 2020 23:03
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