From 393840b988b105caee113470b0f06fc2478e542e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 14 Oct 2020 15:53:34 -0400 Subject: [PATCH] Search ext: Support is_deleted field but not api_key or hash --- ext/search/Civi/Search/Admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.25.1