Undo commit 9990 - not calling loadNodes() in addNode() breaks two unit tests involving grouped collections.
This commit is contained in:
parent
9323574f0f
commit
3250ba7c00
1 changed files with 9 additions and 5 deletions
|
@ -762,11 +762,15 @@ public final class Node implements INode {
|
|||
node.markAs(MODIFIED);
|
||||
}
|
||||
|
||||
// check if this node has a group-by subnode-relation
|
||||
Node groupbyNode = getGroupbySubnode(node, true);
|
||||
if (groupbyNode != null) {
|
||||
groupbyNode.addNode(node);
|
||||
return node;
|
||||
loadNodes();
|
||||
|
||||
if (subrel != null && subrel.groupby != null) {
|
||||
// check if this node has a group-by subnode-relation
|
||||
Node groupbyNode = getGroupbySubnode(node, true);
|
||||
if (groupbyNode != null) {
|
||||
groupbyNode.addNode(node);
|
||||
return node;
|
||||
}
|
||||
}
|
||||
|
||||
NodeHandle nhandle = node.getHandle();
|
||||
|
|
Loading…
Add table
Reference in a new issue