#97082Categories were not rendered, if field is in FlexForm
Description
Hello Core-Team,
I just upgrade EXT:maps2 to be ready for TYPO3 11. In my FlexForm I have a tree element to select categories:
<settings.categories>
<TCEforms>
<label>LLL:EXT:maps2/Resources/Private/Language/FlexForms.xlf:categories</label>
<config>
<type>select</type>
<renderType>selectTree</renderType>
<foreign_table>sys_category</foreign_table>
<foreign_table_where>('0' = '###PAGE_TSCONFIG_IDLIST###' OR sys_category.pid IN (###PAGE_TSCONFIG_IDLIST###)) AND (sys_category.sys_language_uid = 0 OR sys_category.l10n_parent = 0) ORDER BY sys_category.sorting</foreign_table_where>
<treeConfig>
<parentField>parent</parentField>
<appearance>
<maxLevels>99</maxLevels>
<showHeader>TRUE</showHeader>
<expandAll>FALSE</expandAll>
</appearance>
</treeConfig>
<size>15</size>
<maxitems>99</maxitems>
<minitems>0</minitems>
</config>
</TCEforms>
</settings.categories>
If I create a new content element with help of NewContentElementWizard and open tab “Plugin” no category was rendered. I first have to save the record so that the categories will be visible.
I thought it’s because of my foreign_table_where, but sorry, the problem is the same.
As a comparison I have installed EXT:news. Problem is the same. So IMO it’s a core problem.
I have found two Ajax calls with category information. One for tt_content:categories and one for settings.categories, but only tt_content:catgeories was rendered successfully.