Bug #104052
closedCategories tree stops working after the filter filed was used
100%
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
Updated by Garvin Hicking 5 months ago
- Related to Feature #103043: Modernize tree rendering and implement RTL and dark mode added
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
Updated by Benni Mack about 1 month ago
- Target version changed from 13 LTS to Candidate for Major Version
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
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
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
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
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
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
Updated by Oliver Bartsch about 1 month ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c61d5078b3b8dc04ff8984f258967a8170193dc2.