CRM-17564: minor fix
authoryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 17 Nov 2015 10:33:13 +0000 (16:03 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 17 Nov 2015 10:33:13 +0000 (16:03 +0530)
----------------------------------------
* CRM-17564: Dedupe rule doesnt appear to be working correctly...
  https://issues.civicrm.org/jira/browse/CRM-17564

CRM/Dedupe/Finder.php

index f6615c12c809939f0489f2aad2630456a7c3c4f6..e41de55266469afcec2a1db030ecf0b62db82619 100644 (file)
@@ -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]);