[BUGFIX] Enable treeConfig overriding by Page TSconfig 35/25235/2
authorStefan Froemken <froemken@gmail.com>
Mon, 8 Apr 2013 10:58:15 +0000 (12:58 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 9 Nov 2013 16:25:58 +0000 (17:25 +0100)
Add treeConfig to whitelist to allow overriding rootUid
as described in the documentation. Example:

TCEFORM.pages.categories.config.treeConfig.rootUid = 1

Resolves: #47040
Releases: 6.2, 6.1, 6.0, 4.7
Change-Id: Idd55593b063daa0be3c2943400f82617b0bf6218
Reviewed-on: https://review.typo3.org/25235
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/backend/Classes/Form/FormEngine.php

index 59a3b29..4ab9454 100644 (file)
@@ -587,7 +587,7 @@ class FormEngine {
                        'input' => array('size', 'max', 'readOnly'),
                        'text' => array('cols', 'rows', 'wrap', 'readOnly'),
                        'check' => array('cols', 'showIfRTE', 'readOnly'),
-                       'select' => array('size', 'autoSizeMax', 'maxitems', 'minitems', 'readOnly'),
+                       'select' => array('size', 'autoSizeMax', 'maxitems', 'minitems', 'readOnly', 'treeConfig'),
                        'group' => array('size', 'autoSizeMax', 'max_size', 'show_thumbs', 'maxitems', 'minitems', 'disable_controls', 'readOnly'),
                        'inline' => array('appearance', 'behaviour', 'foreign_label', 'foreign_selector', 'foreign_unique', 'maxitems', 'minitems', 'size', 'autoSizeMax', 'symmetric_label', 'readOnly')
                );