Bug #106158
openMissing $LANG variable in Collections using tt_content
0%
Description
Describe the bug
If a Content Blocks Collection is using tt_content as a foreign_field and for example a typo3 form is added in this. The $LANG variable is not available in this scope and we get an Exception:
PHP Warning: Undefined global variable $LANG in /html/typo3-composer/vendor/typo3/cms-form/Classes/Domain/Configuration/FlexformConfiguration/Processors/FinisherOptionGenerator.php line 96
To Reproduce
Steps to reproduce the behavior:
Create an Element that uses a Collection with foreign_table: tt_content
Insert a Typo3 Form element into it
Open frontend and get the error
Expected behavior
The Form element gets the $LANG variable in this scope.
TYPO3 Version
13.4.5
Content Blocks Version:
1.1.6
Related issue in Content Blocks: https://github.com/FriendsOfTYPO3/content-blocks/issues/343
YAML configuration:
name: pxproject/specialbox group: pxproject_content_elements prefixFields: false basics: - TYPO3/Appearance fields: - identifier: image type: File maxitems: 1 minitems: 1 allowed: common-image-types - identifier: content type: Collection minitems: 1 required: 1 foreign_table: tt_content
Files