From 382a83d5e1bd4207e9c0ba1321dce16f3c94aba7 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 21 May 2022 12:51:07 +1200 Subject: [PATCH] Remove always true if conditions (whitespace in next commit) --- CRM/Contact/Import/Parser/Contact.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index 5422cac357..3f975aee2d 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -468,16 +468,11 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser { $this->formatCommonData($params, $formatted, $contactFields); $relationship = FALSE; - $createNewContact = TRUE; - // Support Match and Update Via Contact ID - if ($this->_updateWithId && isset($params['id'])) { - $createNewContact = FALSE; - } //fixed CRM-4148 //now we create new contact in update/fill mode also. $contactID = NULL; - if ($createNewContact || ($this->_updateWithId)) { + if (1) { // @todo - there are multiple places where formatting is done that need consolidation. // This handles where the label has been passed in and it has gotten this far. // probably a bunch of hard-coded stuff could be removed to rely on this. -- 2.25.1