From 8cf02a6a775839d0ca306ef9091ec9a7e033ee1e Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Fri, 16 May 2014 13:33:59 +0530 Subject: [PATCH] CRM-14681 : fix for non matching contact getting created errorneously --- CRM/Contact/Import/Parser/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Import/Parser/Contact.php b/CRM/Contact/Import/Parser/Contact.php index 2ac24f27cd..e9fff31521 100644 --- a/CRM/Contact/Import/Parser/Contact.php +++ b/CRM/Contact/Import/Parser/Contact.php @@ -663,7 +663,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser { //fixed CRM-4148 //now we create new contact in update/fill mode also. $contactID = NULL; - if ($createNewContact || $this->_updateWithId) { + if ($createNewContact || ($this->_retCode != CRM_Import_Parser::NO_MATCH && $this->_updateWithId)) { //CRM-4430, don't carry if not submitted. foreach (array('prefix_id', 'suffix_id', 'gender_id') as $name) { -- 2.25.1