From eba5ec3d43567c2b092605d727d93a30a5238923 Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 17 Nov 2015 16:03:13 +0530 Subject: [PATCH] CRM-17564: minor fix ---------------------------------------- * CRM-17564: Dedupe rule doesnt appear to be working correctly... https://issues.civicrm.org/jira/browse/CRM-17564 --- CRM/Dedupe/Finder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Dedupe/Finder.php b/CRM/Dedupe/Finder.php index f6615c12c8..e41de55266 100644 --- a/CRM/Dedupe/Finder.php +++ b/CRM/Dedupe/Finder.php @@ -292,7 +292,7 @@ class CRM_Dedupe_Finder { // the -digit to civicrm_address.location_type_id and -Primary to civicrm_address.is_primary foreach ($flat as $key => $value) { $matches = array(); - if (preg_match('/(.*)-(Primary-[\d+])$|(.*)-(\d+|Primary)$/', $key, $matches)) { + if (preg_match('/(.*)-(Primary-[\d+])$|(.*)-(\d+|Primary)$/', $key, $matches)) { $return = array_values(array_filter($matches)); $flat[$return[1]] = $value; unset($flat[$key]); -- 2.25.1