Skip to content

Commit

Permalink
SearchKit - Fix pager count return value
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Jul 16, 2021
1 parent 40a8501 commit 7a96f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 7a96f6f

Please sign in to comment.