dev/core#2820: Deduping produces bad results after a rule change
authorMonish Deb <monish.deb@jmaconsulting.biz>
Fri, 17 Sep 2021 04:59:40 +0000 (10:29 +0530)
committerMonish Deb <monish.deb@jmaconsulting.biz>
Fri, 17 Sep 2021 04:59:40 +0000 (10:29 +0530)
CRM/Contact/Form/DedupeRules.php

index 3e8e1e70de01fc1d204c51401baafa46cbe94806..beef61afbf9c55884d89698e3c5259c416592afb 100644 (file)
@@ -298,7 +298,7 @@ UPDATE civicrm_dedupe_rule_group
 
     //need to clear cache of deduped contacts
     //based on the previous rule
-    $cacheKey = "merge {$this->_contactType}_{$this->_rgid}_%";
+    $cacheKey = "merge_{$this->_contactType}_{$this->_rgid}_%";
 
     CRM_Core_BAO_PrevNextCache::deleteItem(NULL, $cacheKey);