Bug #97082
closedCategories were not rendered, if field is in FlexForm
100%
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.
Updated by Oliver Bartsch about 2 years ago
- Status changed from New to Accepted
Hi Stefan, thanks for creating this bug report.
I was able to reproduce this. Actually this isn't a bug in fetching the data as all categories are fetched correctly, but a display problem. After resizing the browser window, the categories show up. Therefore, I assume the problem is the SVG tree component, which does not repaint after the categories have been fetched by the AJAX call.
I'll investigate this further. Best, Oli
Updated by Gerrit Code Review over 1 year ago
- Status changed from Accepted to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78541
Updated by Tymoteusz Motylewski over 1 year ago
This can be reproduced with Styleguide extension.
1) go to "Select 1" element on page "elements select", edit it
2) go to "in flex" tab
3) select "selectTree" tab
4) switch to "renderType=selectSingleBox" tab
5) right click "reload frame"
6) switch to "in flex" tab
Updated by Gerrit Code Review over 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78541
Updated by Gerrit Code Review over 1 year ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78541
Updated by Benjamin Kott over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b020dac13ccb56160e97b3a22b32a80020660286.
Updated by Gerrit Code Review over 1 year ago
- Status changed from Resolved to Under Review
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/78556
Updated by Benjamin Kott over 1 year ago
- Status changed from Under Review to Resolved
Applied in changeset 2d0886971125ad9a1d124df4ed7d6117739690d6.