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);
|
node.markAs(MODIFIED);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if this node has a group-by subnode-relation
|
loadNodes();
|
||||||
Node groupbyNode = getGroupbySubnode(node, true);
|
|
||||||
if (groupbyNode != null) {
|
if (subrel != null && subrel.groupby != null) {
|
||||||
groupbyNode.addNode(node);
|
// check if this node has a group-by subnode-relation
|
||||||
return node;
|
Node groupbyNode = getGroupbySubnode(node, true);
|
||||||
|
if (groupbyNode != null) {
|
||||||
|
groupbyNode.addNode(node);
|
||||||
|
return node;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NodeHandle nhandle = node.getHandle();
|
NodeHandle nhandle = node.getHandle();
|
||||||
|
|
Loading…
Add table
Reference in a new issue