[BUGFIX] TCA slider wizard w. default value in flexform field 08/50008/3
authorJoerg Kummer <service@enobe.de>
Thu, 22 Sep 2016 19:10:56 +0000 (21:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 28 Sep 2016 08:33:37 +0000 (10:33 +0200)
Inserts default value from flexform field in form data

Resolves: #64331
Releases: master, 7.6
Change-Id: Icc89fb419ad997f8066d41fd1adc4fe657a9c077
Reviewed-on: https://review.typo3.org/50008
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Robert van Kammen <rvkammen@hotmail.com>
Tested-by: Robert van Kammen <rvkammen@hotmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/Wizard/ValueSliderWizard.php

index ab4f007..34da392 100644 (file)
@@ -38,7 +38,7 @@ class ValueSliderWizard
         // If Slider is used in a flexform
         if (!empty($params['flexFormPath'])) {
             $flexFormTools = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class);
-            $flexFormValue = $flexFormTools->getArrayValueByPath($params['flexFormPath'], GeneralUtility::xml2array($value));
+            $flexFormValue = $flexFormTools->getArrayValueByPath($params['flexFormPath'], $params['row'][$field]);
             if ($flexFormValue !== null) {
                 $value = $flexFormValue;
             }