ItemAction for restore set to MOVED

This commit is contained in:
Lucio Lelii 2020-04-15 17:40:02 +02:00
parent 1db74cc4df
commit 7ed01ecc4e
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ public class TrashHandler {
String uniqueName = Utils.checkExistanceAndGetUniqueName(ses, destinationNode, itemToMove.getName());
newNodePath = Paths.append(Paths.getPath(destinationNode.getPath()),uniqueName).toPath();
ses.move(itemToMove.getPath(), newNodePath);
Utils.setPropertyOnChangeNode(ses.getNode(newNodePath), login, ItemAction.RESTORED);
Utils.setPropertyOnChangeNode(ses.getNode(newNodePath), login, ItemAction.MOVED);
ses.removeItem(item.getPath());
ses.save();
}catch (Exception e) {