ItemAction for restore set to MOVED
This commit is contained in:
parent
1db74cc4df
commit
7ed01ecc4e
|
@ -238,7 +238,7 @@ public class TrashHandler {
|
||||||
String uniqueName = Utils.checkExistanceAndGetUniqueName(ses, destinationNode, itemToMove.getName());
|
String uniqueName = Utils.checkExistanceAndGetUniqueName(ses, destinationNode, itemToMove.getName());
|
||||||
newNodePath = Paths.append(Paths.getPath(destinationNode.getPath()),uniqueName).toPath();
|
newNodePath = Paths.append(Paths.getPath(destinationNode.getPath()),uniqueName).toPath();
|
||||||
ses.move(itemToMove.getPath(), newNodePath);
|
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.removeItem(item.getPath());
|
||||||
ses.save();
|
ses.save();
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue