Skip to content
Snippets Groups Projects
Commit 7eaa33b5 authored by Marc Bastian Heinrichs's avatar Marc Bastian Heinrichs Committed by Christian Kuhn
Browse files

[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: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent f5ddfc5f
Branches
Tags
No related merge requests found
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment