[BUGFIX] Never show hidden domains in preview 22/34322/2
authorMarkus Klein <klein.t3@reelworx.at>
Tue, 18 Nov 2014 21:05:42 +0000 (22:05 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Wed, 19 Nov 2014 21:41:14 +0000 (22:41 +0100)
When enabling hidden records via Admin Panel domains must not be
affected by this setting as this possibly destroys the environment.

Solution is to always prevent fetching hidden domain records.

Resolves: #61251
Releases: master, 6.2
Change-Id: Id6a90eb47aa85178ea0f90bac91be4ac9bdaa145
Reviewed-on: http://review.typo3.org/34322
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Lieuwe Hummel <lieuwe@familyhummel.net>
Tested-by: Lieuwe Hummel <lieuwe@familyhummel.net>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php

index 8af35c9..0b771ac 100644 (file)
@@ -4652,7 +4652,7 @@ class TypoScriptFrontendController {
                        $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
                                'uid, pid, domainName, forced',
                                'sys_domain',
-                               'redirectTo=\'\' ' . $GLOBALS['TSFE']->sys_page->enableFields('sys_domain'),
+                               'redirectTo=\'\' ' . $GLOBALS['TSFE']->sys_page->enableFields('sys_domain', 0),
                                '',
                                'sorting ASC'
                        );