From 7eaa33b5b42358fb05ed8ddf5fdbfa07ee979bb8 Mon Sep 17 00:00:00 2001 From: Marc Bastian Heinrichs <typo3@mbh-software.de> Date: Thu, 9 Dec 2021 16:55:21 +0100 Subject: [PATCH] [BUGFIX] Missing rootline in BE ConditionMatcher if page id is determined Resolves: #96308 Releases: main, 11.5, 10.4 Change-Id: Ibcbda7fd97a338d721cf00b38026727e941c72ac Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72598 Tested-by: core-ci <typo3@b13.com> Tested-by: Benni Mack <benni@typo3.org> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../TypoScript/ConditionMatching/ConditionMatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php b/typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php index a4d952341001..ac9dd6f42ca6 100644 --- a/typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php +++ b/typo3/sysext/backend/Classes/Configuration/TypoScript/ConditionMatching/ConditionMatcher.php @@ -39,7 +39,7 @@ class ConditionMatcher extends AbstractConditionMatcher $this->context = $context ?? GeneralUtility::makeInstance(Context::class); $this->pageId = $pageId ?? $this->determinePageId(); if ($rootLine === null) { - $rootLine = BackendUtility::BEgetRootLine($pageId, '', true); + $rootLine = BackendUtility::BEgetRootLine($this->pageId, '', true); ksort($rootLine); } $this->rootline = $rootLine; -- GitLab