From: Coleman Watts Date: Wed, 14 Oct 2020 19:53:34 +0000 (-0400) Subject: Search ext: Support is_deleted field but not api_key or hash X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=393840b988b105caee113470b0f06fc2478e542e;p=civicrm-core.git Search ext: Support is_deleted field but not api_key or hash --- diff --git a/ext/search/Civi/Search/Admin.php b/ext/search/Civi/Search/Admin.php index 6ddc792a0f..4cbc53d114 100644 --- a/ext/search/Civi/Search/Admin.php +++ b/ext/search/Civi/Search/Admin.php @@ -68,7 +68,7 @@ class Admin { if ($entity['get']) { $entity['fields'] = civicrm_api4($entity['name'], 'getFields', [ 'select' => $getFields, - 'where' => [['permission', 'IS NULL']], + 'where' => [['name', 'NOT IN', ['api_key', 'hash']]], 'orderBy' => ['label'], ]); $params = $entity['get'][0];