Project

General

Profile

Actions

Bug #88856

open

TCA config.treeConfig.appearance.nonSelectableLevels must be set to 0 if config.treeConfig.rootUid is defined

Added by Georg Tiefenbrunn almost 5 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2019-07-29
Due date:
% Done:

0%

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

Description

In TYPO3 CMS 9.5.x you have to explicitly set config.treeConfig.appearance.nonSelectableLevels=0 to enable the default behavior described in https://docs.typo3.org/m/typo3/reference-tca/9.5/en-us/ColumnsConfig/Type/Select.html#treeconfig

Steps to reproduce:

  1. Create some multi level category tree
  2. Apply Page TSconfig to a category field, e.g. TCEFORM.tt_content.categories.config.treeConfig.rootUid = 1

Excepted behavior: By default the root node (which is "0") cannot be selected (see TCA reference)

Current state: The root node (category uid=1) is selectable unless you explicitly set TCEFORM.tt_content.categories.config.treeConfig.appearance.nonSelectableLevels=0

Seems related to #54494

https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Classes/Tree/TableConfiguration/TreeDataProviderFactory.php#L79

No data to display

Actions

Also available in: Atom PDF