From 3748b65ae556781ff591403a8c25943da595797e Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 15 Mar 2021 11:24:22 +0100 Subject: [PATCH] Respect database restrictions for target table of collection Keep expectation of user and integrator. Do not include records, if they are disabled or not available yet (e.g. starttime). Relates: #4 --- Classes/Collection/StaticRecordCollection.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Classes/Collection/StaticRecordCollection.php b/Classes/Collection/StaticRecordCollection.php index 30dc8bb..4071ab1 100644 --- a/Classes/Collection/StaticRecordCollection.php +++ b/Classes/Collection/StaticRecordCollection.php @@ -167,7 +167,6 @@ class StaticRecordCollection extends AbstractRecordCollection implements Editabl { $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) ->getQueryBuilderForTable(self::getCollectionDatabaseTable()); - $queryBuilder->getRestrictions()->removeAll(); $statement = $queryBuilder->select($this->getItemTableName() . '.*') ->from(self::getCollectionDatabaseTable()) ->join(