SearchKit - Fix toolbar display when not using pager
authorcolemanw <coleman@civicrm.org>
Sat, 2 Dec 2023 12:46:00 +0000 (12:46 +0000)
committercolemanw <coleman@civicrm.org>
Sat, 2 Dec 2023 12:46:00 +0000 (12:46 +0000)
ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php

index 21fdf87428d63fe8a3fb26b74a5b617e033b0e0d..7c6e9d8b5ab1f7aad1f94ca912b816d474a8b02a 100644 (file)
@@ -120,7 +120,7 @@ class Run extends AbstractRunAction {
         $result->setCountMatched($apiResult->countFetched());
         $apiResult = array_slice((array) $apiResult, 0, $apiParams['limit'] - 1);
       }
-      if ($pagerMode === 'page') {
+      else {
         $result->toolbar = $this->formatToolbar();
       }
       $result->exchangeArray($this->formatResult($apiResult));