From 115a8f44cebd5f7fc85c59b717bc16a7b09c9abb Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Mon, 6 Feb 2023 17:02:25 -0500 Subject: [PATCH] only load dedupe rules for the chosen entity I'm not sure how long this has been broken?? CRM_Dedupe_BAO_DedupeRuleGroup::getByType() clearly takes a string and will never get one without this change. --- CRM/Contact/Page/AJAX.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Page/AJAX.php b/CRM/Contact/Page/AJAX.php index 793e998c60..f09be9d63c 100644 --- a/CRM/Contact/Page/AJAX.php +++ b/CRM/Contact/Page/AJAX.php @@ -483,7 +483,7 @@ LIMIT {$offset}, {$rowCount} } public static function buildDedupeRules() { - $contactType = CRM_Utils_Request::retrieve('parentId', 'Positive'); + $contactType = CRM_Utils_Request::retrieve('parentId', 'String'); $dedupeRules = CRM_Dedupe_BAO_DedupeRuleGroup::getByType($contactType); CRM_Utils_JSON::output($dedupeRules); -- 2.25.1