[BUGFIX] FormEngine: FlexForm section container not saved 10/39110/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 30 Apr 2015 16:32:33 +0000 (18:32 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 30 Apr 2015 18:50:11 +0000 (20:50 +0200)
Naming prefixes in flex form section container handling is changed
to successfully save them again.

Resolves: #66663
Releases: master
Change-Id: I8268a4cd9860c4b17a54e05ba2aa86190fa7eda2
Reviewed-on: http://review.typo3.org/39110
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/Container/FlexFormSectionContainer.php

index dee578b..a7c7ce1 100644 (file)
@@ -98,9 +98,9 @@ class FlexFormSectionContainer extends AbstractContainer {
                        $options['flexFormRowData'] = array();
                        $options['flexFormDataStructureArray'] = $flexFormFieldDefinition['el'];
                        $options['flexFormFieldIdentifierPrefix'] = $flexFormFieldIdentifierPrefix;
-                       // @todo: something wrong here ... where is it used - needed for the templates??
-                       $flexFormContainerCounter = 0;
-                       $options['flexFormContainerCounter'] = $flexFormContainerCounter;
+                       $options['flexFormFormPrefix'] = $this->globalOptions['flexFormFormPrefix'] . '[' . $flexFormSectionType . ']' . '[el]';
+                       $options['flexFormContainerName'] = $flexFormContainerName;
+                       $options['flexFormContainerCounter'] = $flexFormFieldIdentifierPrefix . '-form';
                        $options['flexFormContainerTitle'] = $sectionTitle;
                        $options['flexFormContainerElementCollapsed'] = FALSE;
                        /** @var FlexFormContainerContainer $flexFormContainerContainer */