solved issue executing force delete on folder

This commit is contained in:
Lucio Lelii 2021-07-21 15:31:23 +02:00
parent 470cc28035
commit aeb434dd06
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public class TrashHandler {
//only to be sure to not delete shared content
if (itemToDelete.isShared()) return;
List<Item> items = Utils.getItemList((Node) itemToDelete, Excludes.GET_ONLY_CONTENT , null, true, null);
List<Item> items = Utils.getItemList((Node) itemToDelete.getRelatedNode(), Excludes.GET_ONLY_CONTENT , null, true, null);
for (Item item: items)
retrieveContentsToDelete(itemsToDelete, item);
}
@ -103,7 +103,7 @@ public class TrashHandler {
try {
Set<AbstractFileItem> itemsToDelete = new HashSet<>();
Node nodeToDelete = ses.getNodeByIdentifier(itemToDelete.getId());
Node nodeToDelete = (Node) itemToDelete.getRelatedNode();
if (itemToDelete instanceof TrashItem) {
List<Item> trashChildren = Utils.getItemList(nodeToDelete, Excludes.GET_ONLY_CONTENT, null, true, null);