Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.5
-
Fix Version/s: 4.5
-
Component/s: None
-
Labels:None
Description
Submitted PR - https://github.com/civicrm/civicrm-core/pull/2792
The patch adds new calls to existing dedupe hooks, which helps make custom dedupe rules manageable through UI, and also be able to combine with other rule fields using threshold mechanism. The hooks are:
CRM_Utils_Hook::dupeQuery($ruleDao, 'dedupeIndexes', $tables);
// allows one to suppress / decide indexing for new custom rules.
CRM_Utils_Hook::dupeQuery(CRM_Core_DAO::$_nullObject, 'supportedFields', $fields);
// allows one to make custom rules populate in the list of core rule fields.
CRM_Utils_Hook::merge('flip', $dupes, $dupes['dstID'], $dupes['srcID']);
// allows one to implement complex biasing decisions on which contact to keep or merge into.
Can update docs when accepted.