From: Coleman Watts Date: Wed, 15 Sep 2021 22:04:24 +0000 (-0400) Subject: SearchKit - Fix search display pager when using default pager settings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=199b81c0e68e0426cffb7fda553b6654799cb0cc;p=civicrm-core.git SearchKit - Fix search display pager when using default pager settings --- diff --git a/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php b/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php index ce4a06d7a0..3ba06edbd3 100644 --- a/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php +++ b/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php @@ -45,7 +45,7 @@ class Run extends AbstractRunAction { break; default: - if (!empty($settings['pager']) && preg_match('/^page:\d+$/', $this->return)) { + if (($settings['pager'] ?? FALSE) !== FALSE && preg_match('/^page:\d+$/', $this->return)) { $page = explode(':', $this->return)[1]; } $limit = !empty($settings['pager']['expose_limit']) && $this->limit ? $this->limit : NULL;