solved issue executing force delete on folder
This commit is contained in:
parent
470cc28035
commit
aeb434dd06
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue