Bug #96765
openEpic #98291: [UX] - Better use of space
Deleted subpages are not listed in the history
0%
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
Updated by Georg Ringer almost 3 years ago
"show submodule" is not recursive, IMO this works fine. for better control I suggest using the recycler module which provides that and which lets you restore also the subpages in one go.
the record history module will let you restore the subpage once the parent page is restored
Updated by Georg Ringer almost 3 years ago
- Status changed from New to Needs Feedback
Updated by Michael Schams almost 3 years ago
I re-tested the issue in TYPO3 v12.0.0-dev and can confirm that the Recycler module indeed lets you restore the subpages. Still I think that it's not the ideal user experience if the system shows the "Record History / Undo" function in the context menu, offers to roll back a change, but forgets the subpages.
The Recycler module asks the user if they want to restore the page and its content recursively. That's nice. We should have this also in the "Record History" - or push the user from the "Record History" module to the Recycler module straight away and consolidate the functionality.
Updated by Annett Jähnichen about 2 years ago
- Parent task set to #98291
- Tags set to UX