Remove never-true IF
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 7 Feb 2023 01:42:35 +0000 (14:42 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 7 Feb 2023 01:42:35 +0000 (14:42 +1300)
Per https://github.com/civicrm/civicrm-core/pull/25517  is
always FALSE so this IF is never true

CRM/Dedupe/Merger.php

index 85f5b2a0bcc39b3f2569979146e8321ca8896919..dca576955323eff0f9e5854f86f65084d4612099 100644 (file)
@@ -1898,10 +1898,6 @@ WHERE civicrm_custom_group.is_active = 1
         );
     }
 
-    if ($showPublicOnly && $is_public_version) {
-      $strWhere .= "AND civicrm_custom_group.is_public = 1";
-    }
-
     $orderBy = "
 ORDER BY civicrm_custom_group.weight,
          civicrm_custom_group.title,