[BUGFIX] Enable treeConfig overriding by Page TSconfig 40/19740/5
authorStefan Froemken <froemken@gmail.com>
Mon, 8 Apr 2013 10:58:15 +0000 (12:58 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sat, 9 Nov 2013 16:11:42 +0000 (17:11 +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/19740
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot
Reviewed-by: Alexander Opitz
Reviewed-by: Stefan Neufeind
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/backend/Classes/Form/FormEngine.php

index fadf0ad..01b4caa 100644 (file)
@@ -601,7 +601,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')
                );