Skip to content

Commit

Permalink
[BUGFIX] Do not re-set PreviewAspect when initializing TSFE
Browse files Browse the repository at this point in the history
When the Admin Panel is activated, TSFE should not
override the frontendpreview aspect by default, as
the preview settings will never work otherwise.

Resolves: #92713
Releases: master, 10.4
Change-Id: I070fe49d5196f1ae2e8cc9feed3d16926f5d9728
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66332
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
bmack committed Oct 27, 2020
1 parent f8d722d commit 4ed80ee
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -29,7 +29,6 @@
use TYPO3\CMS\Core\Site\Entity\Site;
use TYPO3\CMS\Core\Type\Bitmask\Permission;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Frontend\Aspect\PreviewAspect;
use TYPO3\CMS\Frontend\Controller\ErrorController;
use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;
use TYPO3\CMS\Frontend\Page\PageAccessFailureReasons;
Expand Down Expand Up @@ -77,7 +76,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
['code' => PageAccessFailureReasons::INVALID_PAGE_ARGUMENTS]
);
}
$this->context->setAspect('frontend.preview', GeneralUtility::makeInstance(PreviewAspect::class));

$controller = GeneralUtility::makeInstance(
TypoScriptFrontendController::class,
Expand Down

0 comments on commit 4ed80ee

Please sign in to comment.