Project

General

Profile

Actions

Bug #104052

closed

Categories tree stops working after the filter filed was used

Added by Marcin Sągol 5 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Category:
Backend JavaScript
Start date:
2024-06-11
Due date:
% Done:

100%

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 modeClosedBenjamin Kott2024-02-05

Actions
Actions #1

Updated by Garvin Hicking 5 months ago

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

Updated by Gerrit Code Review 5 months 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 #3

Updated by Benni Mack about 1 month ago

  • Target version changed from 13 LTS to Candidate for Major Version
Actions #4

Updated by Gerrit Code Review about 1 month 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/+/84680

Actions #5

Updated by Gerrit Code Review about 1 month 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/+/84680

Actions #6

Updated by Gerrit Code Review about 1 month ago

Patch set 4 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 #7

Updated by Gerrit Code Review about 1 month ago

Patch set 5 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 #8

Updated by Gerrit Code Review about 1 month ago

Patch set 6 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 #9

Updated by Gerrit Code Review about 1 month ago

Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86624

Actions #10

Updated by Oliver Bartsch about 1 month ago

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

Also available in: Atom PDF