Skip to content

Commit

Permalink
Merge pull request #25519 from eileenmcnaughton/gettree2
Browse files Browse the repository at this point in the history
Remove always-NULL `$singleRecord` variable
  • Loading branch information
yashodha authored Feb 10, 2023
2 parents 4feb0a4 + a641640 commit 327bb32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Dedupe/Merger.php
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ public static function getTree(
// add info to groupTree

if (isset($groupTree['info']) && !empty($groupTree['info']) &&
!empty($groupTree['info']['tables']) && $singleRecord != 'new'
!empty($groupTree['info']['tables'])
) {
$select = $from = $where = [];
$groupTree['info']['where'] = NULL;
Expand Down Expand Up @@ -1974,7 +1974,7 @@ public static function getTree(
}
$multipleFieldTablesWithEntityData = array_keys($entityMultipleSelectClauses);
if (!empty($multipleFieldTablesWithEntityData)) {
CRM_Core_BAO_CustomGroup::buildEntityTreeMultipleFields($groupTree, $entityID, $entityMultipleSelectClauses, $multipleFieldTablesWithEntityData, $singleRecord);
CRM_Core_BAO_CustomGroup::buildEntityTreeMultipleFields($groupTree, $entityID, $entityMultipleSelectClauses, $multipleFieldTablesWithEntityData);
}

}
Expand Down

0 comments on commit 327bb32

Please sign in to comment.