From da118e343c10cec46cbe92905b1d978494146f3e Mon Sep 17 00:00:00 2001 From: Gianluigi Martino Date: Mon, 11 May 2026 12:15:00 +0200 Subject: [PATCH] [BUGFIX] Fix maxitems count by correcting version state check (cherry picked from commit 85a6ce2a23872166d6ca4a52f6d11bc8b2e50096) --- Classes/Repository/ContentRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Repository/ContentRepository.php b/Classes/Repository/ContentRepository.php index 63f91be..a92b069 100644 --- a/Classes/Repository/ContentRepository.php +++ b/Classes/Repository/ContentRepository.php @@ -149,7 +149,7 @@ protected function fetchRecordsForColPos(array $record): array while ($row = $statement->fetchAssociative()) { BackendUtility::workspaceOL('tt_content', $row, -99, true); - if (is_array($row) && !VersionState::cast($row['t3ver_state'])->equals(VersionState::DELETE_PLACEHOLDER)) { + if (is_array($row) && VersionState::tryFrom((int)($row['t3ver_state'] ?? 0)) !== VersionState::DELETE_PLACEHOLDER) { $uid = ($row['_ORIG_uid'] ?? 0) ?: $row['uid']; $rows[$uid] = $uid; }