Actions
Bug #96765
openEpic #98291: [UX] - Better use of space
Deleted subpages are not listed in the history
Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2022-02-07
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
UX
Complexity:
Is Regression:
Sprint Focus:
Description
Deleted subpages are not listed in the history. As a consequence they can't be rolled back.
HOW TO REPRODUCE THE ISSUE
Create the following page tree:
The database table pages
shows the following records:
SELECT uid, pid, title, deleted FROM pages; +-----+-----+-----------+---------+ | uid | pid | title | deleted | +-----+-----+-----------+---------+ | 1 | 0 | page 1 | 0 | | 2 | 0 | page 2 | 0 | | 3 | 0 | page 3 | 0 | | 4 | 1 | subpage A | 0 | | 5 | 1 | subpage B | 0 | | 6 | 1 | subpage C | 0 | +-----+-----+-----------+---------+
Delete "page 1" (ID: 1) from the context menu in the page tree:
The database table pages
now shows the following records:
SELECT uid, pid, title, deleted FROM pages; +-----+-----+-----------+---------+ | uid | pid | title | deleted | +-----+-----+-----------+---------+ | 1 | 0 | page 1 | 1 | | 2 | 0 | page 2 | 0 | | 3 | 0 | page 3 | 0 | | 4 | 1 | subpage A | 1 | | 5 | 1 | subpage B | 1 | | 6 | 1 | subpage C | 1 | +-----+-----+-----------+---------+
The "page 1" is marked as deleted and also its subpages (ID 4, 5, and 6). Now open the History/Undo function from the context menu in the page tree:
The history shows the deletion event of "page 1" but not the subpages. Even if the toggle switch "Show sub elements" is enabled. You can roll back the deletion of "page 1" but you can't roll back the deletion of the subpages.
Files
Actions