Commit 7ee09cff authored by Frederic Gaus's avatar Frederic Gaus Committed by Wouter Wolters
Browse files

[BUGFIX] Fix comment about hidden doktypes

Resolves: #68380
Releases: master
Change-Id: I9520e9d9e57899b1079ce7aa8a2203d3d20485c2

Reviewed-by: Wouter Wolters's avatarWouter Wolters <>
Tested-by: Wouter Wolters's avatarWouter Wolters <>
parent a2f6b0c6
......@@ -1124,7 +1124,7 @@ class EditDocumentController {
if (isset($pagesTSconfig['TCEMAIN.']['preview.']['disableButtonForDokType'])) {
$excludeDokTypes = GeneralUtility::intExplode(',', $pagesTSconfig['TCEMAIN.']['preview.']['disableButtonForDokType'], TRUE);
} else {
// exclude sysfolders and recycler by default
// exclude sysfolders, spacers and recycler by default
$excludeDokTypes = array(PageRepository::DOKTYPE_RECYCLER, PageRepository::DOKTYPE_SYSFOLDER, PageRepository::DOKTYPE_SPACER);
if (!in_array((int)$this->pageinfo['doktype'], $excludeDokTypes, TRUE) || isset($pagesTSconfig['TCEMAIN.']['preview.'][$this->firstEl['table'].'.']['previewPageId'])) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment