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

Fix for issue when optional contact_id is blank importing contributions #25897

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 22, 2023

Overview

Fix for issue when optional contact_id is blank importing contributions

Before

Contribution import falls over if contact_id is present as an optional field (ie some contacts have it & not others) due to an empty string rather than NULL be passed into a function with a type hint

After

Fixed... with test

Technical Details

@mlutfy this is the same as the soft credit contact one - probably a bit less common to hit it.

Comments

@civibot
Copy link

civibot bot commented Mar 22, 2023

(Standard links)

@civibot civibot bot added the 5.60 label Mar 22, 2023
@eileenmcnaughton eileenmcnaughton force-pushed the import_contact_id branch 4 times, most recently from 6247e6b to bb0ddcb Compare March 22, 2023 10:43
@colemanw
Copy link
Member

I'm satisfied with the test coverage here

@colemanw colemanw merged commit c8eeafc into civicrm:5.60 Mar 24, 2023
@colemanw colemanw deleted the import_contact_id branch March 24, 2023 01:40
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