From 4c826596dbc85a4ef466575d6959be7a2f85284c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavs=20G=C5=ABtmanis?= Date: Fri, 20 May 2022 16:53:39 +0300 Subject: [PATCH] fix(#130 #132): fixed an error when saving events on milti-site pages on Craft 3.7.42 --- packages/plugin/src/Elements/Db/EventQuery.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/plugin/src/Elements/Db/EventQuery.php b/packages/plugin/src/Elements/Db/EventQuery.php index f98c9f98..44afc813 100644 --- a/packages/plugin/src/Elements/Db/EventQuery.php +++ b/packages/plugin/src/Elements/Db/EventQuery.php @@ -487,13 +487,16 @@ public function all($db = null): array if (null === $this->events || self::$lastCachedConfigStateHash !== $configHash) { $limit = $this->limit; $offset = $this->offset; + $indexBy = $this->indexBy; $this->limit = null; $this->offset = null; + $this->indexBy = null; $ids = parent::ids($db); $this->limit = $limit; $this->offset = $offset; + $this->indexBy = $indexBy; if (empty($ids)) { return [];