Issue Bug Needs Feedback Orphaned

#96765Deleted subpages are not listed in the history

Michael Schams 02/07/22, 01:44 updated 10/12/22, 16:58

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:
image01.png

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:
image02.png

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:
image03.png

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[BUGFIX] Deleted subpages are not listed in the history Resolves: #96765 Releases: main