From 7a96f6fc73613ae37cbecc75ef8b8bf832e815e7 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 16 Jul 2021 12:03:25 -0400 Subject: [PATCH] SearchKit - Fix pager count return value --- ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php b/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php index e5e7b523001a..a3cecdafac57 100644 --- a/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php +++ b/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php @@ -113,7 +113,7 @@ public function _run(\Civi\Api4\Generic\Result $result) { if (empty($apiParams['having'])) { $apiParams['select'] = []; } - if (!in_array($this->return, $apiParams)) { + if (!in_array($this->return, $apiParams['select'], TRUE)) { $apiParams['select'][] = $this->return; } unset($apiParams['orderBy'], $apiParams['limit']);