[BUGFIX] Remove default fieldWizard on NoneElement 98/51998/4
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 10 Mar 2017 21:08:01 +0000 (22:08 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 12 Mar 2017 17:16:02 +0000 (18:16 +0100)
The NoneElement is a readOnly field. The fieldWizard API does not
make sense for this element, thus the declaration of default
fieldWizards can be dropped.

Change-Id: I59b0a25a798058858384dcea4fb9e9a33bf2b7ae
Resolves: #80231
Releases: master
Reviewed-on: https://review.typo3.org/51998
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/Form/Element/NoneElement.php

index e7fb8a6..d9fec9e 100644 (file)
@@ -22,23 +22,6 @@ use TYPO3\CMS\Core\Utility\MathUtility;
 class NoneElement extends AbstractFormElement
 {
     /**
-     * Default field wizards enabled for this element.
-     *
-     * @var array
-     */
-    protected $defaultFieldWizard = [
-        'otherLanguageContent' => [
-            'renderType' => 'otherLanguageContent',
-        ],
-        'defaultLanguageDifferences' => [
-            'renderType' => 'defaultLanguageDifferences',
-            'after' => [
-                'otherLanguageContent',
-            ],
-        ],
-    ];
-
-    /**
      * This will render a non-editable display of the content of the field.
      *
      * @return string The HTML code for the TCEform field