Project

General

Profile

Actions

Bug #97082

closed

Categories were not rendered, if field is in FlexForm

Added by Stefan Froemken over 2 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2022-03-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

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

Actions #5

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

Actions #6

Updated by Benjamin Kott over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #7

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

Actions #8

Updated by Benjamin Kott over 1 year ago

  • Status changed from Under Review to Resolved
Actions #9

Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF