Issue Bug Closed

#96481Rootlevel check in ListModule fieldControl is wrong

Oliver Bartsch 01/07/22, 17:42 updated 10/04/22, 14:14

Description

The current check, wether the record is only allowed on rootlevel reads:

isset($GLOBALS['TCA'][$table]['ctrl']['rootLevel']) && (int)$GLOBALS['TCA'][$table]['ctrl'] === 1

This makes no sense and should be:

isset($GLOBALS['TCA'][$table]['ctrl']['rootLevel']) && (int)$GLOBALS['TCA'][$table]['ctrl']['rootLevel'] === 1

Reviews 2