#54490Overriding tcaTree configuration results in missing foreign_table error
Description
Hello Core-Team,
I have following TCA-Configuration:
<T3DataStructure>
<meta>
<langDisable>1</langDisable>
</meta>
<sheets>
<sDEFAULT>
<ROOT>
<TCEforms>
<sheetTitle>LLL:EXT:events2/Resources/Private/Language/FlexForms.xlf:sheetGeneral</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<ageGroup>
<TCEforms>
<label>LLL:EXT:events2/Resources/Private/Language/FlexForms.xlf:categories</label>
<config>
<type>select</type>
<foreign_table>sys_category</foreign_table>
<renderMode>tree</renderMode>
<treeConfig>
<parentField>parent</parentField>
<rootUid>0</rootUid>
<appearance>
<showHeader>TRUE</showHeader>
<expandAll>FALSE</expandAll>
</appearance>
</treeConfig>
<size>15</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
</config>
</TCEforms>
</ageGroup>
</el>
</ROOT>
</sDEFAULT>
</sheets>
</T3DataStructure>
This works perfect. All my categories will be displayed. But in case of many categories it would be good to reduce this selection. So I add this row to pageTSconfig:
TCEFORM.tt_content.pi_flexform.events2_culture.sDEFAULT.ageGroup.config.treeConfig.rootUid = 4
On opening my Plugin with this Flexform I get this error now:
TCA Tree configuration is invalid: "foreign_table" not set
Stefan