Skip to content

Commit

Permalink
Merge pull request #23625 from eileenmcnaughton/import_suff
Browse files Browse the repository at this point in the history
Remove obsolete code - this parameter is not possible
  • Loading branch information
yashodha authored May 30, 2022
2 parents e09e156 + 39d2bf6 commit df43e41
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions CRM/Contact/Import/Parser/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -2123,28 +2123,6 @@ protected function formatContactParameters(&$values, &$params) {
// @todo - remove this after confirming this is just a compilation of other-wise-cached fields.
static $fields = [];

if (isset($values['individual_prefix'])) {
if (!empty($params['prefix_id'])) {
$prefixes = CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', 'prefix_id');
$params['prefix'] = $prefixes[$params['prefix_id']];
}
else {
$params['prefix'] = $values['individual_prefix'];
}
return TRUE;
}

if (isset($values['individual_suffix'])) {
if (!empty($params['suffix_id'])) {
$suffixes = CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', 'suffix_id');
$params['suffix'] = $suffixes[$params['suffix_id']];
}
else {
$params['suffix'] = $values['individual_suffix'];
}
return TRUE;
}

// CRM-4575
if (isset($values['email_greeting'])) {
if (!empty($params['email_greeting_id'])) {
Expand Down

0 comments on commit df43e41

Please sign in to comment.