#71245Undelete does not restore inline records
Description
When a record is deleted all inline records are deleted as well.
However, when restoring the original record, none of these elements are restored.
Reviews 2
Related issues 1
History 79
-
Gerrit Code Review pushed patch set 1 for master to change 44478 status
NewUnder Review <span data-processor="relativetime" data-value="2015-11-02T14:25:37+00:00" > 11/02/15, 14:25 </span> -
Gerrit Code Review pushed patch set 2 for master to change 44478 <span data-processor="relativetime" data-value="2015-11-02T14:31:35+00:00" > 11/02/15, 14:31 </span>
-
Markus Sommer changed assigned to Alexander Jahn <span data-processor="relativetime" data-value="2015-11-20T14:03:52+00:00" > 11/20/15, 14:03 </span>
-
Susanne Moog changed Complexity
no-brainerhard <span data-processor="relativetime" data-value="2017-07-13T15:36:46+00:00" > 07/13/17, 15:36 </span> -
Mathias Schreiber changed Related to #69334 <span data-processor="relativetime" data-value="2018-02-06T23:26:53+00:00" > 02/06/18, 23:26 </span>
-
Coders.Care Extension Team commented <span data-processor="relativetime" data-value="2018-04-30T14:03:52+00:00" > 04/30/18, 14:03 </span>
-
Christian Kuhn commented and changed status
Under ReviewNew <span data-processor="relativetime" data-value="2018-09-17T01:28:55+00:00" > 09/17/18, 01:28 </span>setting this issue back to new since the according patch stalled in the review system and nothing happened for a long time.
-
Michael Stopp commented <span data-processor="relativetime" data-value="2021-05-25T10:23:57+00:00" > 05/25/21, 10:23 </span>
So we’re on 10 LTS (with 11 on the horizon) and this problem still persists. If cascading delete is (sensibly) the default for inline records, a rollback function MUST include child records as well. If not, it’s broken and should be fixed, since there is no decent way to recover these records without a lot of manual labor (eg. if a user has deleted the contents of a whole folder, where every record has multiple child records – a problem I just faced this morning…).
-
Benni Mack commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-10-18T14:43:19+00:00" > 10/18/26, 14:43 </span>This is fixed in v11 with commit 67ad9d7a720.
Just for the record and taken from the review tracker comments of the duplicate issue which is now abandoned:
The actual problem for the missing rollbacks is, that there are two kinds of integer values involved, which are mistaken during the process.
The “children” field of the parent record contains an integer, representing the number of child elements attached to this parent.
During the rollack process this number is treated as a UID of a record of the table connected to this field, which leads to two different unwanted behaviours:
While (1) is just a broken undelete action, which is already bad, (2) is even worse, since it might roll back records somewhere in the page tree, that should have stayed deleted by all means. Especially when these records contain legally relevant content, this might cause severe issues for the owner of the website. Still the editor would not even notice that the record magically returned.
This happens to Gridelements as well as to any other kind of parent/chlid combination, i.e. using sys_file_references and the like.