Project

General

Profile

Actions

Bug #104052

open

Categories tree stops working after the filter filed was used

Added by Marcin Sągol 19 days ago. Updated 17 days ago.

Status:
Under Review
Priority:
Must have
Assignee:
-
Category:
Backend JavaScript
Target version:
Start date:
2024-06-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
backend, ui, categories, tree, javascript
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

When working with the main branch and we want to filter out the categories tree, the whole tree will stop working with JavaScript errors in the console:

Uncaught TypeError: e.parents is undefined
    showParents https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
    filter https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
    filter https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
    filter https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree-toolbar.js?bust=396812935d9842951aac4444bc32330e7dac1db7:33
    render https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree-toolbar.js?bust=396812935d9842951aac4444bc32330e7dac1db7:19
    handleEvent https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    _$AI https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    p https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    $ https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    _$AI https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    j https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-html/lit-html.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    update https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-element/lit-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    performUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    scheduleUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    _$ET https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    requestUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    _$Ev https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    b https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    s https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-element/lit-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    SelectTreeToolbar https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree-toolbar.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
    registerTreeEventListeners https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/category-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
    firstUpdated https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/tree/tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:70
    _$AE https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    performUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    scheduleUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    _$ET https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    requestUpdate https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    _$Ev https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    b https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/@lit/reactive-element/reactive-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    s https://local.domain/typo3/sysext/core/Resources/Public/JavaScript/Contrib/lit-element/lit-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:6
    Tree https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/tree/tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
    SelectTree https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/select-tree.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
    connectedCallback https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/category-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
    <anonymous> https://local.domain/typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/category-element.js?bust=396812935d9842951aac4444bc32330e7dac1db7:13
2

How to reproduce:
- edit any page
- go to Categories tab
- try to enter any text in the categories filter field and remove some letter

Bug might be related to the changes from: https://github.com/TYPO3/typo3/commit/4f459c2925be702ce93f047d7af32d296de1ddd6


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #103043: Modernize tree rendering and implement RTL and dark modeResolvedBenjamin Kott2024-02-05

Actions
Actions #1

Updated by Garvin Hicking 19 days ago

  • Related to Feature #103043: Modernize tree rendering and implement RTL and dark mode added
Actions #2

Updated by Gerrit Code Review 17 days ago

  • Status changed from New 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/+/84680

Actions

Also available in: Atom PDF