From 6e7ba2eed42c9d57e945c8523de430a10f2a153b Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 7 Jun 2022 22:00:51 +1200 Subject: [PATCH] Minor simplification - use --- CRM/Contribute/Import/Form/MapField.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CRM/Contribute/Import/Form/MapField.php b/CRM/Contribute/Import/Form/MapField.php index 60c8cc3e41..8c7c0b3156 100644 --- a/CRM/Contribute/Import/Form/MapField.php +++ b/CRM/Contribute/Import/Form/MapField.php @@ -316,15 +316,9 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField { $importKeys[] = $mapperPart[0]; } - $contactTypeId = $self->get('contactType'); - $contactTypes = [ - CRM_Import_Parser::CONTACT_INDIVIDUAL => 'Individual', - CRM_Import_Parser::CONTACT_HOUSEHOLD => 'Household', - CRM_Import_Parser::CONTACT_ORGANIZATION => 'Organization', - ]; $params = [ 'used' => 'Unsupervised', - 'contact_type' => $contactTypes[$contactTypeId] ?? '', + 'contact_type' => $self->getContactType(), ]; [$ruleFields, $threshold] = CRM_Dedupe_BAO_DedupeRuleGroup::dedupeRuleFieldsWeight($params); $weightSum = 0; -- 2.25.1