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

Simplify return from createContact #23635

Merged
merged 2 commits into from
Jun 1, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 30, 2022

Overview

Simplify return from createContact

This is a continuation from #23634 - continuing to simplify the handling of what is returned from createContact

Before

the found $ids are wrapped in an error array

After

They are just returned - we already know that an array means duplicates found

Technical Details

This is the crux of it

image

Comments

@civibot
Copy link

civibot bot commented May 30, 2022

(Standard links)

@@ -472,7 +465,7 @@ public function import($onDuplicate, &$values) {
$this->_newRelatedContacts[] = $relativeContact[] = $relContactId;
}

if (is_array($relatedNewContact) || ($relatedNewContact instanceof CRM_Contact_BAO_Contact)) {
if (1) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left for now for whitespace readability

@colemanw
Copy link
Member

colemanw commented Jun 1, 2022

@eileenmcnaughton MC

@eileenmcnaughton
Copy link
Contributor Author

Done

@eileenmcnaughton eileenmcnaughton merged commit 291ab38 into civicrm:master Jun 1, 2022
@eileenmcnaughton eileenmcnaughton deleted the import_unreach2 branch June 1, 2022 04:15
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