Project

General

Profile

Actions

Bug #96765

open

Epic #98291: [UX] - Better use of space

Deleted subpages are not listed in the history

Added by Michael Schams about 2 years ago. Updated over 1 year ago.

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

image01.png (25.6 KB) image01.png Michael Schams, 2022-02-07 01:40
image02.png (44.8 KB) image02.png Michael Schams, 2022-02-07 01:40
image03.png (24.2 KB) image03.png Michael Schams, 2022-02-07 01:40
Actions #1

Updated by Georg Ringer about 2 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

Actions #2

Updated by Georg Ringer about 2 years ago

  • Status changed from New to Needs Feedback
Actions #3

Updated by Michael Schams about 2 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.

Actions #4

Updated by Annett Jähnichen over 1 year ago

  • Parent task set to #98291
  • Tags set to UX
Actions

Also available in: Atom PDF