diff --git a/typo3/sysext/frontend/Classes/Page/PageRepository.php b/typo3/sysext/frontend/Classes/Page/PageRepository.php index fd774ecac8aee53c0410e45873e1b1a90ccbdb56..6c0c62d90feb0f31881f096477ff8b35bacb8f95 100644 --- a/typo3/sysext/frontend/Classes/Page/PageRepository.php +++ b/typo3/sysext/frontend/Classes/Page/PageRepository.php @@ -1287,7 +1287,7 @@ class PageRepository { * @todo Define visibility */ public function getWorkspaceVersionOfRecord($workspace, $table, $uid, $fields = '*', $bypassEnableFieldsCheck = FALSE) { - if ($workspace !== 0) { + if ($workspace !== 0 && !empty($GLOBALS['TCA'][$table]['ctrl']['versioningWS'])) { $workspace = (int)$workspace; $uid = (int)$uid; // Have to hardcode it for "pages" table since TCA is not loaded at this moment!