code.onehippo.org is currently readonly. We are migrating to code.bloomreach.com, please continue working there on Monday 14/12. See: https://docs.bloomreach.com/display/engineering/GitLab

Commit 8edd713d authored by Sergey Shepelevich's avatar Sergey Shepelevich

REPO-1836 Fix Node#getDisplayName for virtual node

parent c59f8673
......@@ -282,6 +282,12 @@ public class NodeDecorator extends org.hippoecm.repository.decorating.NodeDecora
@Override
public String getDisplayName() throws RepositoryException {
Node node = this;
if (isVirtual()) {
node = getCanonicalNode();
if (node == null) {
return getName();
}
}
if (!node.isNodeType(HippoNodeType.NT_NAMED)) {
if (node.equals(node.getSession().getRootNode())) {
return getName();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment