Skip to content

get trashed elements too, so that delete permanently works as expected#15645

Merged
brandonkelly merged 4 commits into5.xfrom
bugfix/delete-permanently-and-nested-elements
Sep 3, 2024
Merged

get trashed elements too, so that delete permanently works as expected#15645
brandonkelly merged 4 commits into5.xfrom
bugfix/delete-permanently-and-nested-elements

Conversation

@i-just
Copy link
Copy Markdown
Contributor

@i-just i-just commented Sep 3, 2024

Description

Currently, when you soft delete an owner element, its nested elements get (correctly) marked as soft deleted, too. If you then go to view the trashed elements and decide to permanently delete that soft-deleted element, its nested ones won’t get hard deleted.

This PR ensures that the nested element manager‘s deleteNestedElements() method also gets the trashed nested elements. This way, if the owner is hard deleted, the nested elements are too.

Also, you can now hard-delete nested elements via the “Delete permanently” action from the nested element index (previously, it was still attempting to delete the ownership). Hard deletion of nested elements this was is irreversible.

Screenshot 2024-09-03 at 16 29 18

Related issues

n/a

@i-just i-just marked this pull request as ready for review September 3, 2024 15:31
@i-just i-just requested a review from brandonkelly September 3, 2024 15:44
@brandonkelly brandonkelly merged commit 8f3c12d into 5.x Sep 3, 2024
@brandonkelly brandonkelly deleted the bugfix/delete-permanently-and-nested-elements branch September 3, 2024 16:00
brandonkelly added a commit that referenced this pull request Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants