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,12 +762,16 @@ public final class Node implements INode {
node.markAs(MODIFIED); node.markAs(MODIFIED);
} }
loadNodes();
if (subrel != null && subrel.groupby != null) {
// check if this node has a group-by subnode-relation // check if this node has a group-by subnode-relation
Node groupbyNode = getGroupbySubnode(node, true); Node groupbyNode = getGroupbySubnode(node, true);
if (groupbyNode != null) { if (groupbyNode != null) {
groupbyNode.addNode(node); groupbyNode.addNode(node);
return node; return node;
} }
}
NodeHandle nhandle = node.getHandle(); NodeHandle nhandle = node.getHandle();