diff --git a/src/Stache/Query/QueriesEntryStatus.php b/src/Stache/Query/QueriesEntryStatus.php index e26b8f7d0a..b5a5d33eed 100644 --- a/src/Stache/Query/QueriesEntryStatus.php +++ b/src/Stache/Query/QueriesEntryStatus.php @@ -22,6 +22,7 @@ public function whereStatus(string $status) return $this->where(fn ($query) => $this ->getCollectionsForStatusQuery() + ->filter(fn ($collection) => $collection->dated()) ->each(fn ($collection) => $query->orWhere(fn ($q) => $this->addCollectionStatusLogicToQuery($q, $status, $collection)))); }