Issue Bug Closed

#84708Option "nonSelectableLevels" doesn't work in select fields with renderType "selectTree"

Tobias Schmidt 04/12/18, 23:09 updated 10/02/18, 10:47

Description

Setting the option nonSelectableLevels of treeConfig-Configuration in TCA overrides file has no effect. For example:

$GLOBALS['TCA']['pages']['columns']['categories']['config']['treeConfig']['appearance']['nonSelectableLevels'] = '0,1,2';

Categories are still selectable on level 0, 1 and 2.

Other options work as expected. For example:

$GLOBALS['TCA']['pages']['columns']['categories']['config']['treeConfig']['appearance']['expandAll'] = false;

I did check $node in method buildRepresentationForNode in file sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php. The value for property selectable is set correctly. So I guess there is a bug in the rendering of the select tree or in the related JavaScript.

Reviews 2