Skip to content

Commit

Permalink
Merge pull request #26308 from eileenmcnaughton/public
Browse files Browse the repository at this point in the history
Fix show_public regression
  • Loading branch information
eileenmcnaughton authored May 23, 2023
2 parents 02d6f43 + 839313a commit f360d56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CRM/Core/BAO/CustomGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,16 +527,16 @@ public static function getTree(
);
}

if ($showPublicOnly && $is_public_version) {
$strWhere .= "AND civicrm_custom_group.is_public = 1";
if ($showPublicOnly) {
$strWhere .= 'AND civicrm_custom_group.is_public = 1';
}

$orderBy = "
$orderBy = '
ORDER BY civicrm_custom_group.weight,
civicrm_custom_group.title,
civicrm_custom_field.weight,
civicrm_custom_field.label
";
';

// final query string
$queryString = "$strSelect $strFrom $strWhere $orderBy";
Expand Down

0 comments on commit f360d56

Please sign in to comment.