Skip to content

Wrong nodes being deleted #226

Open
Open
@tuurbo

Description

@tuurbo

When i delete trashed items, it is deleting some items that aren't trashed and that aren't descendants of other trashed items.

(i ran Folder::fixTree(); first and it returned zero)

Folder::onlyTrashed()->get()->each(function($folder) {
    $folder->forceDelete();
});

If i comment out lines 632 - 641 from https://github.com/lazychaser/laravel-nestedset/blob/v4/src/NodeTrait.php#L632-L641 It doesnt delete the wrong folders.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions