From cebe809a05641df523914cfee71dd669910a7d12 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 7 Sep 2022 11:20:14 +1200 Subject: [PATCH] Follow up code simplification - no need to map 'Individual' to 'Individual' --- CRM/Import/Parser.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/CRM/Import/Parser.php b/CRM/Import/Parser.php index 63127ac0739c..f31719f69210 100644 --- a/CRM/Import/Parser.php +++ b/CRM/Import/Parser.php @@ -205,15 +205,7 @@ public function isComplete() :bool { * @return string */ protected function getContactType(): string { - if (!$this->_contactType) { - $contactTypeMapping = [ - 'Individual' => 'Individual', - 'Household' => 'Household', - 'Organization' => 'Organization', - ]; - $this->_contactType = $contactTypeMapping[$this->getSubmittedValue('contactType')]; - } - return $this->_contactType; + return $this->getSubmittedValue('contactType'); } /**