[BUGFIX] FormEngine: Exception on inline/section in flex container 79/47379/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 23 Mar 2016 15:18:41 +0000 (16:18 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 24 Mar 2016 11:01:59 +0000 (12:01 +0100)
commit27ac1594dbd23417d055934dc5981bb3c6f13ba4
tree5173d7b587deac7daf2d4105165349f6e79e9a45
parent72eb2fec385ad4e80e3163e3bda0ca5437e456e1
[BUGFIX] FormEngine: Exception on inline/section in flex container

Nesting flex form sections or inline within section containers is
not supported. To not let developers run into hard to track issues
the patch adds an exception to detect these cases.

Additionally, GroupElement contains a preparation that is done by
TcaGroup data provider already, so this part is cleaned up along
the way since this is unreachable code if FormEngine is used without
nested sections.

Change-Id: I2af9140ad0fe1d60d85439bd5598775904b70e52
Resolves: #73125
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/47379
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/Element/GroupElement.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexProcess.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaFlexProcessTest.php