#81684Flexform sections can't be created until content element is saved
Description
Hi,
I have a very simple flexform (attached) which adds a section to a tt_content record. If i try to add items on it before saving the content, it is not added and the on the browse console I can get the error:
#1476107295: PHP Warning: Invalid argument supplied for foreach() in .../typo3_src/typo3/sysext/backend/Classes/Form/Container/FlexFormElementContainer.php line 47 (More information) TYPO3\CMS\Core\Error\Exception thrown in file .../typo3_src/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 112.
Thought it was related to #80825, but the solution for it didn’t solved this problem.
If the tt_content record is already saved, the items of section are added normally.
Other data not in sections works fine.
It works fine on TYPO3 7.
I’ve tested this on 8.7.1 and 8.7.2 and none works.