This commit is contained in:
lucio.lelii 2021-10-06 11:44:23 +02:00
parent f30029c052
commit 51cbd0776a
1 changed files with 4 additions and 1 deletions

View File

@ -267,7 +267,10 @@ public class ItemHandler {
authChecker.checkWriteAuthorizationControl(ses, login, newNode.getIdentifier(), false);
AbstractFileItem item = fillItemWithContent(stream, storageBackend, name, description, relativePath,login);
item.setHidden(destinationNode.getProperty(NodeProperty.HIDDEN.toString()).getBoolean());
if (destinationNode.hasProperty(NodeProperty.HIDDEN.toString()))
item.setHidden(destinationNode.getProperty(NodeProperty.HIDDEN.toString()).getBoolean());
if (withLock) {
try {
ses.getWorkspace().getLockManager().lock(newNode.getPath(), true, true, 0,login);