Skip to content

Commit

Permalink
Disable 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 74085eb
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());
$select = 'SELECT id, label, settings FROM civicrm_search_display WHERE type = "entity"';
$display = CRM_Core_DAO::executeQuery($select);
return $displays;
while ($display->fetch()) {
$settings = CRM_Core_DAO::unSerializeField($display->settings, \CRM_Core_DAO::SERIALIZE_JSON);
$displays[] = [
Expand Down

0 comments on commit 74085eb

Please sign in to comment.