Skip to content

Commit

Permalink
Change code to see what happens to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Mar 22, 2023
1 parent 37656fd commit 8ab2a43
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ext/search_kit/search_kit.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,9 @@ function search_kit_civicrm_entityTypes(array &$entityTypes): void {
function _search_kit_get_entity_displays(): array {
$displays = [];
// Can't use the API to fetch search displays because this is called by pre-boot hooks
$select = CRM_Utils_SQL_Select::from('civicrm_search_display')
->where('type = "entity"')
->select(['id', 'label', 'settings']);
$display = CRM_Core_DAO::executeQuery($select->toSQL());
$display = new CRM_Search_DAO_SearchDisplay();
$display->type = 'entity';
$display->find();
while ($display->fetch()) {
$settings = CRM_Core_DAO::unSerializeField($display->settings, \CRM_Core_DAO::SERIALIZE_JSON);
$displays[] = [
Expand Down

0 comments on commit 8ab2a43

Please sign in to comment.