Project

General

Profile

Actions

Bug #65277

closed

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

Added by Stefan Schuett over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-02-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #63406: setRespectStoragePid() of QuerySettings does not work with concrete settings in TCAClosed2014-11-28

Actions
Has duplicate TYPO3 Core - Bug #65276: exclude fields not showing up in "allowed excludefields" if table property rootLevel = -1Closed2015-02-24

Actions
Actions #1

Updated by Steffen Müller over 9 years ago

  • Project changed from 1865 to TYPO3 Core
  • Category deleted (Configuration)
  • Is Regression set to No

Moving to CMS Core issue tracker.

Actions #2

Updated by Daniel Goerz about 9 years ago

  • Status changed from New to Closed

You can set

$GLOBALS['TCA']['my_table']['ctrl']['security']['ignoreRootLevelRestriction'] = TRUE

to have your exclude fields show up with rootLevel set to 1 oder -1. This is used throughout the core as well (e.g. for sys_file_reference table).

I'll close this issue for now. If you think this is the wrong descision, feel free to contact me or reopen the ticket with a further discription what appears to be buggy.

Actions

Also available in: Atom PDF