dev/core#498 Update Mailing Report to fix undefined property error
[civicrm-core.git] / CRM / Dedupe / Finder.php
index 6a5f7c9e0ccbf142ddc0b18dc8deee57c26b56f9..45689b9b2cb25c3aa76535d32e534d6ac5eb5561 100644 (file)
@@ -170,7 +170,7 @@ class CRM_Dedupe_Finder {
    * @param int $rgid
    *   Rule group id.
    * @param int $gid
-   *   Contact group id (currently, works only with non-smart groups).
+   *   Contact group id.
    *
    * @param int $searchLimit
    *  Limit for the number of contacts to be used for comparison.
@@ -181,7 +181,7 @@ class CRM_Dedupe_Finder {
    *   array of (cid1, cid2, weight) dupe triples
    */
   public static function dupesInGroup($rgid, $gid, $searchLimit = 0) {
-    $cids = array_keys(CRM_Contact_BAO_Group::getMember($gid, $searchLimit));
+    $cids = array_keys(CRM_Contact_BAO_Group::getMember($gid, TRUE, $searchLimit));
     if (!empty($cids)) {
       return self::dupes($rgid, $cids);
     }