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] Remove unused pcp & soft credit handling from previously shared code #19525

Merged
merged 1 commit into from
Feb 8, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

[REF] Remove unused pcp & soft credit handling from previously shared code

Before

Lines exist, do nothing

After

poof

Technical Details

the ProcessContribution function has been split out from a shared function used by front end forms
and I'm pretty sure it was only relevant for those other forms. The only code that calls this function
is when a payment processor is used in recurring mode to pay for a membership.

I tested doing this and selected 'record payment from a different contact' without these
lines & it created the soft credit (using the code elsewhere in the function that
would be used if it were not recurring or not credit card payment)

Comments

… code

the ProcessContribution function has been split out from a shared function used by front end forms
and I'm pretty sure it was only relevant for those other forms. The only code that calls this function
is when a payment processor is used in recurring mode to pay for a membership.

I tested doing this and selected 'record payment from a different contact' without these
lines & it created the soft credit (using the code elsewhere in the function that
would be used if it were not recurring or not credit card payment)
@civibot
Copy link

civibot bot commented Feb 4, 2021

(Standard links)

@civibot civibot bot added the master label Feb 4, 2021
@yashodha
Copy link
Contributor

yashodha commented Feb 8, 2021

@yashodha yashodha merged commit ef55369 into civicrm:master Feb 8, 2021
@eileenmcnaughton
Copy link
Contributor Author

Thanks @yashodha

@eileenmcnaughton eileenmcnaughton deleted the member_soft branch February 8, 2021 20:08
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