Commit cee749cc authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Fix rootlevel check in ListModule fieldControl

Resolves: #96481
Releases: main, 11.5
Change-Id: I41eeb4ecf0b90e998875701131b2c8a35bfa3225
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72906

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent bf1512e7
......@@ -68,7 +68,10 @@ class ListModule extends AbstractNode
if (isset($options['pid'])) {
// pid configured in options - use it
$pid = $options['pid'];
} elseif (isset($GLOBALS['TCA'][$table]['ctrl']['rootLevel']) && (int)$GLOBALS['TCA'][$table]['ctrl'] === 1) {
} elseif (
isset($GLOBALS['TCA'][$table]['ctrl']['rootLevel'])
&& (int)$GLOBALS['TCA'][$table]['ctrl']['rootLevel'] === 1
) {
// Target table can only exist on root level - set 0 as pid
$pid = 0;
}
......
Markdown is supported
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