Bug #105680
closedInvalid localStorage treeState prevents dragging elements after a tree-node
100%
Description
Example:
You have:
- Page 1
- Page 2
- Page 4
- Page 3
- Page 2
If you delete "Page 4" and end up with following tree:
- Page 1
- Page 2
- Page 3
Then you can't drag an element at the end of "Page 2", the only drag state that works is at the top of "Page 3". If this element was the last in a tree branch, you would not be able to append new elements at the end of it.
This happens because on opening pages with children, that tree state is persisted, but if the child page doesn't exist anymore (either deleted by myself or someone else) the invalid "expanded" state for the parent is still persisted. The tree fetches this and sets it regardless of it still being the case at the moment.
Updated by Gerrit Code Review about 15 hours 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/+/87168
Updated by Gerrit Code Review about 15 hours 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/+/87168
Updated by Gerrit Code Review about 11 hours 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/+/87184
Updated by Andreas Nedbal about 11 hours ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9a631f789c947b95a359983c7be801ffee687508.