Review 13.4 Merged

87184[BUGFIX] Ignore invalid tree state in page tree drag actions

Andreas Nedbal CR +2 V +2 Easy +4 −2 updated 11/22/24, 15:06

Commit message

The expansion state of tree nodes is persisted in localStorage.
When all children of a node are removed (either locally or by
someone else) the state is still present and the nodes are
"enhanced" with the broken state later. This prevents dragging
elements after the now childless nodes.

This can be fixed manually with either clearing the tree state
localStorage or using the "Collapse all tree items" option, which
sets new state.

This fix in code however checks if the condition that sets the
expanded state again is only ever called if the to-be-enhanced
node actually has children, effectively ignoring the broken
state.

Review

  • Code review CR +2 Done
    • Andreas Nedbal +2
  • Verified V +2 Done
    • Andreas Nedbal +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 34

  1. Andreas Nedbal commented on patch set 1 11/22/24, 14:57

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 11/22/24, 15:03 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/70046

  3. Andreas Nedbal voted on patch set 1 CR +2 V +2 11/22/24, 15:05

  4. Andreas Nedbal merged patch set 2 11/22/24, 15:06