[MAGNOLIA-5492] RestorePreviousVersionAction should restore all childs folder Created: 13/Nov/13  Updated: 17/Dec/13  Resolved: 14/Nov/13

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 5.1.1
Fix Version/s: 5.2

Type: Bug Priority: Critical
Reporter: Eric Hechinger Assignee: Espen Jervidalo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
caused by MAGNOLIA-5337 MarkNodeAsDeletedCommand mark only ch... Closed
is causing MAGNOLIA-5558 MarkNodeAsDeletedCommand is not flexi... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: 5.2-rc2

 Description   

RestorePreviousVersionAction restore only child items but not folders and their child nodes.

Reproduce in contact app:
Create structure as

rootFolder [type mgnl:folder]
subFolder [type mgnl:folder]
contactInSubFolder [type mgnl:contact]
contactInRootFolder [type mgnl:contact]

Then select rootFolder and use Delete folder action. Confirm warning about "the node and its sub nodes will be marked for deletion".

All elements from the tree are mark as deleted.

Now select the RootFolder and use 'restore previous version' action.
RootFolder and contactInRootFolder will be correctly restored, but subFolder and contactInSubFolder not.

Check fix done for MAGNOLIA-5337



 Comments   
Comment by Jaroslav Simak [ 17/Dec/13 ]

Reverted as part of MAGNOLIA-5558 fix.

Generated at Mon Feb 12 04:05:39 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.