Importing contacts with dedupe rule does not use the rule
Importing contacts with dedupe rule does not use the rule because of invalid call to getDuplicateContacts() method
how to reproduce
- open Import Contacts page
- choose csv file with contact with name and address already exists in db
- fill the form with Dedupu rule = Name and Address (reserved) - General
- ...several steps later ;-) at the end of importing you have additional contact with the same name and address
technical aspect
// current, invalid call
$ids = CRM_Contact_BAO_Contact::getDuplicateContacts($params, $params['contact_type'], 'Unsupervised', array(), CRM_Utils_Array::value('check_permissions', $params, $dedupeRuleGroupID));
// fixed
$ids = CRM_Contact_BAO_Contact::getDuplicateContacts($params, $params['contact_type'], 'Unsupervised', array(), CRM_Utils_Array::value('check_permissions', $params), $dedupeRuleGroupID);