From eac51f15b0518569c20c3386b4ab7f888e0f60b8 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 2 Jun 2022 18:35:38 +1200 Subject: [PATCH] Remove always true if --- CRM/Contact/Import/Parser/Contact.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index 9af366c283..6fab0b405a 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -350,15 +350,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser { CRM_Utils_Hook::import('Contact', 'process', $this, $hookParams); } - $primaryContactId = NULL; - if (is_array($newContact)) { - if ($dupeCount == 1 && CRM_Utils_Rule::integer($contactID)) { - $primaryContactId = $contactID; - } - } - else { - $primaryContactId = $newContact->id; - } + $primaryContactId = $newContact->id; if ($primaryContactId) { -- 2.25.1