From baeb2d67f660ac97b545e524cef5b9c131d14f14 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 5 May 2022 07:53:07 +1200 Subject: [PATCH] Import - fix comment --- CRM/Contact/Import/Parser/Contact.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index f5a7c2e147..1cab53cca9 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -3636,7 +3636,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser { } /** - * Transform the input parameters into the + * Transform the input parameters into the form handled by the input routine. * * @param array $values * Input parameters as they come in from the datasource @@ -3652,11 +3652,13 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser { * 'phone' => ['phone' => '123', 'location_type_id' => 1, 'phone_type_id' => 1], * '5_a_b' => ['contact_type' => 'Organization', 'url' => ['url' => 'https://example.org', 'website_type_id' => 1]] * 'im' => ['im' => 'my-handle', 'location_type_id' => 1, 'provider_id' => 1], + * + * @throws \API_Exception */ public function getMappedRow(array $values): array { $this->setActiveFieldValues($values); $params = $this->getActiveFieldParams(); - $params['contact_type'] = $this->_contactType; + $params['contact_type'] = $this->getContactType(); return $params; } -- 2.25.1