X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FImport%2FParser.php;h=e6bfd26f2a460de2982afe4aaa18a7eb66ed6f24;hb=3662d5a75d79d6c259b632df748b1beb66db6faf;hp=821dcb1d99598c7d9bf015dc4367f94b023ca02b;hpb=2c45c10ab138e85c4cd6b950ae353f2b2211687b;p=civicrm-core.git diff --git a/CRM/Contact/Import/Parser.php b/CRM/Contact/Import/Parser.php index 821dcb1d99..e6bfd26f2a 100644 --- a/CRM/Contact/Import/Parser.php +++ b/CRM/Contact/Import/Parser.php @@ -563,18 +563,6 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser { return $params; } - /** - * @return array - */ - public function getColumnPatterns() { - CRM_Core_Error::deprecatedFunctionWarning('no longer used- use CRM_Contact_Import_MetadataTrait'); - $values = []; - foreach ($this->_fields as $name => $field) { - $values[$name] = $field->_columnPattern; - } - return $values; - } - /** * @param string $name * @param $title @@ -837,6 +825,7 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser { $this->formatLocationBlock($value, $formatted); } else { + // @todo - this is still reachable - e.g. import with related contact info like firstname,lastname,spouse-first-name,spouse-last-name,spouse-home-phone CRM_Core_Error::deprecatedFunctionWarning('this is not expected to be reachable now'); $this->formatContactParameters($value, $formatted); } @@ -1051,17 +1040,7 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser { } if (isset($values['addressee'])) { - if (!empty($params['addressee_id'])) { - $addresseeFilter = [ - 'contact_type' => $params['contact_type'] ?? NULL, - 'greeting_type' => 'addressee', - ]; - $addressee = CRM_Core_PseudoConstant::addressee($addresseeFilter); - $params['addressee'] = $addressee[$params['addressee_id']]; - } - else { - $params['addressee'] = $values['addressee']; - } + $params['addressee'] = $values['addressee']; return TRUE; } @@ -1112,12 +1091,6 @@ abstract class CRM_Contact_Import_Parser extends CRM_Import_Parser { return TRUE; } - // get the formatted location blocks into params - w/ 3.0 format, CRM-4605 - if (!empty($values['location_type_id'])) { - CRM_Core_Error::deprecatedFunctionWarning('this is not expected to be reachable now'); - return $this->formatLocationBlock($values, $params); - } - if (isset($values['note'])) { // add a note field if (!isset($params['note'])) {