Search ext: Support is_deleted field but not api_key or hash
authorColeman Watts <coleman@civicrm.org>
Wed, 14 Oct 2020 19:53:34 +0000 (15:53 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 14 Oct 2020 19:53:34 +0000 (15:53 -0400)
ext/search/Civi/Search/Admin.php

index 6ddc792a0f84e36afad94762bbdc95ac48885458..4cbc53d1145448c6846a1261e29d77b72c251fef 100644 (file)
@@ -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];