Skip to content

Commit

Permalink
Merge pull request #24473 from eileenmcnaughton/import_const
Browse files Browse the repository at this point in the history
Follow up code simplification - no need to map 'Individual' to 'Individual'
  • Loading branch information
eileenmcnaughton authored Sep 7, 2022
2 parents 5a311a5 + cebe809 commit 5b60185
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions CRM/Import/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand Down

0 comments on commit 5b60185

Please sign in to comment.