[BUGFIX] Hidden content is displayed in view module 17/36017/2
authorStefan Froemken <froemken@gmail.com>
Tue, 6 Jan 2015 12:22:23 +0000 (13:22 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 15 Jan 2015 00:32:43 +0000 (01:32 +0100)
Since TYPO3 4.2.3 hidden content elements and hidden
pages are displayed in view page module. There are many people
in the community who wants them to be hidden by default.
This patch reactivates the old way from TYPO3 4.2.2. If you
want to see the hidden elements again you have to add
config.admPanel = 1 in your TypoScript. The checkboxes
in admPanel to display hidden records works now again.

Resolves: #20335
Releases: master, 6.2
Change-Id: I146518fbacf0b381bc7c705aa8cb6275af175712
Reviewed-on: http://review.typo3.org/36017
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/viewpage/Classes/Controller/ViewModuleController.php

index 488f232..d2c59f8 100644 (file)
@@ -95,7 +95,7 @@ class ViewModuleController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionContr
                $pageinfo = BackendUtility::readPageAccess($pageId, $GLOBALS['BE_USER']->getPagePermsClause(1));
                $addCommand = '';
                if (is_array($pageinfo)) {
-                       $addCommand = '&ADMCMD_view=1&ADMCMD_editIcons=1' . BackendUtility::ADMCMD_previewCmds($pageinfo);
+                       $addCommand = '&ADMCMD_editIcons=1' . BackendUtility::ADMCMD_previewCmds($pageinfo);
                }
                return $addCommand;
        }