Undo commit 9990 - not calling loadNodes() in addNode() breaks two unit tests involving grouped collections.

This commit is contained in:
hns 2009-11-24 10:25:31 +00:00
parent 9323574f0f
commit 3250ba7c00

View file

@ -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();