[BUGFIX] Allow integer value for flexform section 41/44541/2
authorDaniel Goerz <ervaude@gmail.com>
Wed, 4 Nov 2015 20:07:42 +0000 (21:07 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 4 Nov 2015 21:57:22 +0000 (22:57 +0100)
Change-Id: Ia579e342af5d6ef467e46bbcaf0b6832c7dfb0c7
Resolves: #71329
Releases: master
Reviewed-on: https://review.typo3.org/44541
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexProcess.php

index 19d2a1f..2c9f9d4 100644 (file)
@@ -270,7 +270,7 @@ class TcaFlexProcess implements FormDataProviderInterface
             ];
             foreach ($dataStructureSheetElements as $dataStructureSheetElementName => $dataStructureSheetElementDefinition) {
                 if (isset($dataStructureSheetElementDefinition['type']) && $dataStructureSheetElementDefinition['type'] === 'array'
-                    && isset($dataStructureSheetElementDefinition['section']) && $dataStructureSheetElementDefinition['section'] === '1'
+                    && isset($dataStructureSheetElementDefinition['section']) && (string)$dataStructureSheetElementDefinition['section'] === '1'
                 ) {
                     // A section