Issue Bug Closed

#65277exclude fields not showing up in "allowed excludefields" if table property rootLevel = -1

Stefan Schuett 02/24/15, 18:34 updated 10/01/15, 13:33

Description

The field “allowed excludefields” does not show fields of tables which have the property rootLevel = -1.

This behaviour is wrong because rootLevel = -1 means that the data can exist in both page tree and root. If it exists in the page tree it should be editable by non-admins and therefore the exclude fields should be listed in allowed excludefields.

I propose to change the comparison in t3lib/class.t3lib_befunc.php in the following way:

&& (empty($GLOBALS['TCA'][$table]['ctrl']['rootLevel'])

should be modified to

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.