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 duplicated tax assignments from copied code #19228

Merged
merged 1 commit into from
Dec 18, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Dec 16, 2020

Overview

Remove duplicated tax assignments from copied code

Before

Tax data for the template being assigned twice in the recurring payment for membership back-office form flow. The instance being removed is from a previously shared function - very little of which is actually relevant to this form

  $smarty->assign('dataArray', $dataArray);
        $smarty->assign('totalTaxAmount', $params['tax_amount'] ?? NULL);

After

poof

Technical Details

The assignment of tax data is happening twice on the form - once in generic
code and once in code only reached for recurring contributions that
was in previously-shared code. We can be fairly comfortable that
in this latter case we don't need it as this is a marginal flow
on this form whereas the main flow is being used 90% of the time
& is doing the assignment

Comments

The assignment of tax data is happening twice on the form - once in generic
code and once in code only reached for recurring contributions that
was in previously-shared code. We can be fairly comfortable that
in this latter case we don't need it as this is a marginal flow
on this form whereas the main flow is being used 90% of the time
& is doing the assignment
@civibot
Copy link

civibot bot commented Dec 16, 2020

(Standard links)

@civibot civibot bot added the master label Dec 16, 2020
@seamuslee001
Copy link
Contributor

This seems fine to me merging

@seamuslee001 seamuslee001 merged commit 4454262 into civicrm:master Dec 18, 2020
@seamuslee001 seamuslee001 deleted the inv_assign branch December 18, 2020 06:43
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