CRM-14505 fix - CiviCRM api contact dedupe check wrong rule type
authormonishdeb <monish.deb@webaccessglobal.com>
Thu, 3 Jul 2014 16:40:50 +0000 (22:10 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Thu, 3 Jul 2014 16:40:50 +0000 (22:10 +0530)
https://issues.civicrm.org/jira/browse/CRM-14505

api/v3/Contact.php

index 1efb42a13da38ff03c96391970897d3642417255..79ad85ff28a33146f322b02760613d5c2f8bf577 100644 (file)
@@ -329,7 +329,7 @@ function _civicrm_api3_contact_check_params( &$params, $dupeCheck = true, $dupeE
       $dedupeParams['check_permission'] = $params['check_permission'];
     }
 
-    $ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams, $params['contact_type'], 'Strict', array());
+    $ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams, $params['contact_type'], 'Unsupervised', array());
 
     if (count($ids) >0) {
       throw new API_Exception("Found matching contacts: ". implode(',',$ids),"duplicate",array("ids"=>$ids));