[BUGFIX] Never show hidden domains in preview 69/34369/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:34 +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/34369
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php

index 86beede..5009c5a 100644 (file)
@@ -4946,7 +4946,7 @@ if (version == "n3") {
                        $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
                                'pid, domainName, forced',
                                'sys_domain',
-                               'redirectTo=\'\' ' . $GLOBALS['TSFE']->sys_page->enableFields('sys_domain'),
+                               'redirectTo=\'\' ' . $GLOBALS['TSFE']->sys_page->enableFields('sys_domain', 0),
                                '',
                                'sorting ASC'
                        );