CRM-20494 - skip use of cache while fetching contacts with external ids during import
authorJitendra Purohit <jitendra@fuzion.co.nz>
Fri, 28 Apr 2017 06:31:52 +0000 (12:01 +0530)
committerJitendra Purohit <jitendra@fuzion.co.nz>
Fri, 28 Apr 2017 06:31:52 +0000 (12:01 +0530)
CRM/Contact/Import/Parser/Contact.php

index 3358247de06dfd9f22a6bc57dcd4830d7b5f147e..aa4a3fde5d21228b0e025275571edaf26a676cd9 100644 (file)
@@ -506,7 +506,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser {
         )))
     ) {
 
-      if ($internalCid = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $params['external_identifier'], 'id', 'external_identifier')) {
+      if ($internalCid = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $params['external_identifier'], 'id', 'external_identifier', TRUE)) {
         if ($internalCid != CRM_Utils_Array::value('id', $params)) {
           $errorMessage = ts('External ID already exists in Database.');
           array_unshift($values, $errorMessage);