[BUGFIX] Enable localizationStateSelector for selectTreeElement 26/57826/2
authorTorben Hansen <derhansen@gmail.com>
Tue, 7 Aug 2018 05:21:53 +0000 (07:21 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 10 Aug 2018 17:19:27 +0000 (19:19 +0200)
Follow up of the backport for TYPO3 8.7, where some lines of code
have not been merged.

Enables the localizationStateSelector for the selectTreeElement.

Resolves: #84564
Releases: 8.7
Change-Id: Ie39c52652b5175318694775a9dfa5fbbf33f490c
Reviewed-on: https://review.typo3.org/57826
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Tim Schreiner <schreiner.tim@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/backend/Classes/Form/Element/SelectTreeElement.php

index 2dd88a0..264b6d4 100644 (file)
@@ -22,6 +22,15 @@ namespace TYPO3\CMS\Backend\Form\Element;
 class SelectTreeElement extends AbstractFormElement
 {
     /**
+     * @var array Default wizards
+     */
+    protected $defaultFieldWizard = [
+        'localizationStateSelector' => [
+            'renderType' => 'localizationStateSelector',
+        ],
+    ];
+
+    /**
      * Default number of tree nodes to show (determines tree height)
      * when no ['config']['size'] is set
      *