[BUGFIX] Colorpicker data not set in EM configuration 23/44423/2
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 30 Oct 2015 18:05:45 +0000 (19:05 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 30 Oct 2015 18:18:20 +0000 (19:18 +0100)
The colorpicker does not fill the input field in the EM
configuration. Add the missing formengine data attribute.

Resolves: #71186
Releases: master
Change-Id: I96caa16d2d8f601ee35b6241ccea0154ff9e12fa
Reviewed-on: https://review.typo3.org/44423
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extensionmanager/Classes/ViewHelpers/Form/TypoScriptConstantsViewHelper.php

index 935f055..c217d39 100644 (file)
@@ -95,6 +95,7 @@ class TypoScriptConstantsViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\Abs
         $this->tag->addAttribute('type', 'text');
         $this->tag->addAttribute('id', $elementId);
         $this->tag->addAttribute('name', $elementName);
+        $this->tag->addAttribute('data-formengine-input-name', $elementName);
         $this->tag->addAttribute('class', 'form-control');
         if ($configuration->getValue() !== null) {
             $this->tag->addAttribute('value', $configuration->getValue());