Bug #84708
closedOption "nonSelectableLevels" doesn't work in select fields with renderType "selectTree"
100%
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.
Files
Updated by Lorenz Ulrich over 6 years ago
I can confirm this. It used to work at least in TYPO3 6.2.
Updated by Christian Hackl over 6 years ago
I can't confirm this, too.
It would be nice if the check-icon(s) are not shown of the nonSelectableLevels list.
Updated by Sebastian Michaelsen about 6 years ago
Confirmed. I got it running when I patched the SvgTree.js file. Then it works but it looks kind of off - I think there's an icon missing.
Updated by Gerrit Code Review about 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58263
Updated by Gerrit Code Review about 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58263
Updated by Gerrit Code Review about 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58306
Updated by Anonymous about 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6a6fe299caa4ebb77711e4ca3565ffeb801910e5.