Skip to content

Commit

Permalink
fix(#130 #132): fixed an error when saving events on milti-site pages…
Browse files Browse the repository at this point in the history
… on Craft 3.7.42
  • Loading branch information
gustavs-gutmanis committed May 20, 2022
1 parent 429d8f6 commit 4c82659
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/plugin/src/Elements/Db/EventQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [];
Expand Down

0 comments on commit 4c82659

Please sign in to comment.