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] extract getIdsOfMatchingContact #19172

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Dec 11, 2020

Overview

[REF] extract getIdsOfMatchingContact

It seems this really needs sorting to be shared between the parser classes
to fix up the error handling

Before

code in main block

After

code extracted

Technical Details

The function is only used by one class so far but 2 other classes can potentially share it

Comments

@civibot
Copy link

civibot bot commented Dec 11, 2020

(Standard links)

It seems this really needs sorting to be shared between the parser classes
to fix up the error handling
@@ -642,10 +634,6 @@ public function import($onDuplicate, &$values, $doGeocodeAddress = FALSE) {
if (isset($newContact) && is_a($newContact, 'CRM_Contact_BAO_Contact')) {
$relationship = TRUE;
}
elseif (is_a($error, 'CRM_Core_Error')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

wasn't actually possible

@seamuslee001 seamuslee001 merged commit a51b14f into civicrm:master Dec 11, 2020
@seamuslee001 seamuslee001 deleted the dep_match branch December 11, 2020 07:35
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