Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Sep 3, 2024

Conversation

i-just
Copy link
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
@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