Issue Bug Closed

#97082Categories were not rendered, if field is in FlexForm

Stefan Froemken 03/02/22, 11:36 updated 07/09/24, 12:45

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.

Reviews 2

History 59

  1. Oliver Bartsch commented and changed status New Accepted 11/07/22, 09:44

    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

  2. Gerrit Code Review pushed patch set 1 for main to change 78541 status Accepted Under Review 04/07/23, 19:35

  3. Tymoteusz Motylewski commented 04/07/23, 19:53

    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

  4. Gerrit Code Review pushed patch set 2 for main to change 78541 04/07/23, 19:59

  5. Gerrit Code Review pushed patch set 3 for main to change 78541 04/08/23, 19:02

  6. Benjamin Kott commented and changed status Under Review Resolved done 0 % 100 % 04/11/23, 07:40

    Applied in changeset commit:b020dac13ccb56160e97b3a22b32a80020660286.

  7. Gerrit Code Review pushed patch set 1 for 11.5 to change 78556 status Resolved Under Review 04/11/23, 07:43

  8. Benjamin Kott commented and changed status Under Review Resolved 04/11/23, 08:10

    Applied in changeset commit:2d0886971125ad9a1d124df4ed7d6117739690d6.

  9. Benni Mack changed status Resolved Closed 07/09/24, 12:45