Allow dupeQuery to add query for table added via dupeQuery type supportedFields hook.
authorDarrick Servis <darrick@davismedia.org>
Sat, 30 Apr 2022 19:55:20 +0000 (12:55 -0700)
committerDarrick Servis <darrick@davismedia.org>
Sun, 8 May 2022 22:42:34 +0000 (15:42 -0700)
commit782d9509f47f359560c121581332c658d8ca7d61
tree45d7328779dd15a4e1d402ff6c0d8ebfe7dc9ee4
parent469aabc01ea95afaa2e1c6e0b2dcd5118cb97b80
Allow dupeQuery to add query for table added via dupeQuery type supportedFields hook.

Adding unit tests for hook_civicrm_dupeQuery.

Fix coding standards.

Add query option to dupeQuery hook.

Fix typo.

Provide custom test entity to test findDuplicates.

Change contact type from Organization to Individual.

Use CRM_Core_DAO::getReferencesToContactTable() and
CRM_Core_DAO::getDynamicReferencesToTable('civicrm_contact')
to find refs for the DedupeRule query.

Simplify changes as much as possible.
CRM/Dedupe/BAO/DedupeRule.php
tests/phpunit/CRM/Dedupe/BAO/RuleGroupTest.php