[BUGFIX] EM ConstantsView crashs with dep/faulty types. 97/19697/2
authorAlexander Opitz <opitz.alexander@googlemail.com>
Sat, 6 Apr 2013 18:47:38 +0000 (20:47 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 6 Apr 2013 19:03:18 +0000 (21:03 +0200)
The types default and input are deprecated. Removing of this let
the ConstantsView crash, as there is no function configuration for them.

We now readd the config in 6.1 as we have no problems with this lines
in the core and we don't know how much extsnions exists which fail.

Resolves: #46996
Related: #44763
Releases: 6.1, 6.0
Change-Id: I670e80bab6b415997fcfd26de19fba870a0f8446
Reviewed-on: https://review.typo3.org/19697
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extensionmanager/Classes/ViewHelpers/Form/TypoScriptConstantsViewHelper.php

index 4081ce0..1770458 100644 (file)
@@ -45,6 +45,8 @@ class TypoScriptConstantsViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\Abs
                'user' => 'renderUserFunction',
                'small' => 'renderSmallTextField',
                'string' => 'renderTextField',
+               'input' => 'renderTextField',  // only for backwards compatibility, many extensions depend on that
+               'default' => 'renderTextField' // only for backwards compatibility, many extensions depend on that
        );
 
        public $tagName = 'input';