From b53f1cadb26aa7ce4bd7deaec761248524eaf8d1 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 5 Oct 2021 09:49:55 -0400 Subject: [PATCH] Fixes dev/core#2888 SearchKit download CSV broken --- .../Civi/Api4/Action/SearchDisplay/AbstractRunAction.php | 8 ++++++++ ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php b/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php index faf18ec7865f..75269cefddfc 100644 --- a/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php +++ b/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php @@ -41,6 +41,14 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { */ protected $filters = []; + /** + * Integer used as a seed when ordering by RAND(). + * This keeps the order stable enough to use a pager with random sorting. + * + * @var int + */ + protected $seed; + /** * Name of Afform, if this display is embedded (used for permissioning) * @var string diff --git a/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php b/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php index 4d09c7e81ebf..3ba06edbd3fb 100644 --- a/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php +++ b/ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php @@ -22,14 +22,6 @@ class Run extends AbstractRunAction { */ protected $limit; - /** - * Integer used as a seed when ordering by RAND(). - * This keeps the order stable enough to use a pager with random sorting. - * - * @var int - */ - protected $seed; - /** * @param \Civi\Api4\Generic\Result $result * @throws \API_Exception