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

CRM-17040 Import Contributions using External Ids causes … #10797

Merged
merged 2 commits into from
Aug 21, 2017

Conversation

agileware
Copy link
Contributor

@agileware agileware commented Aug 1, 2017

…soft credit to be wrongly associated

Overview

From CRM-17040, When importing contributions where BOTH the donor and the soft credit recipient are specified by External ID, then the contribution is allocated to the soft credit user not the donor.

Before

Soft credit is not assigned to the donor when using the External ID

After

Soft credit is assigned to the donor when using the External ID

Technical Details

CSV contribution import tested before patch, error repeatable.
After patch, CSV contribution assigns soft credits correctly.

Comments

Code was overriding the contact_id value of the primary contact by the soft_credit contact.
https://issues.civicrm.org/jira/browse/CRM-17040

@seamuslee001
Copy link
Contributor

This seems to make sense to me @eileenmcnaughton does it make sense to you?

@agileware
Copy link
Contributor Author

This PR now has a test for the soft credit import.

@agileware
Copy link
Contributor Author

@seamuslee001 ready for review dude! :)

@eileenmcnaughton
Copy link
Contributor

Yay tests! The actual import change to the code base seems trivial & clearly thought add. Added test coverage = big yay. Merging

@eileenmcnaughton eileenmcnaughton merged commit 57da476 into civicrm:master Aug 21, 2017
@eileenmcnaughton eileenmcnaughton changed the title CIVICRM-230 CRM-17040 Import Contributions using External Ids causes … CRM-17040 Import Contributions using External Ids causes … Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants