#105655"Collapse all tree items" doesn't persist all pages as closed
Description
How to reproduce
- Expand a few nested pages
- Use “Collapse all tree items” in the kebab menu above the page tree => everything is collapsed
- Use “Reload the tree from server” => some pages are expanded again
Why is that?
The page tree sends individual Ajax requests to the server to save the collapsed state for each page. These run at the same time, the last request “wins”, saves its one page as closed and overwrites everything the other requests have written. Instead there should be one request that resets the BackendComponents.States.Pagetree object.
Affected versions
I’m experiencing it with our TYPO3 v12 installation and I confirmed the behaviour with https://demo.typo3.org/typo3/ which also runs v12. At the moment I don’t have a v13 installation at hand to test it there. If you can reproduce it with v13, feel free to update the TYPO3 version of this ticket.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.