* Don't mark a HopObject dirty if added to transient collection.

This is a rather conservative fix for bug 554.
  http://helma.org/bugs/show_bug.cgi?id=554
This commit is contained in:
hns 2007-10-11 09:51:17 +00:00
parent 9874ec1cd9
commit 033659c8c5

View file

@ -901,7 +901,9 @@ public final class Node implements INode, Serializable {
markAs(MODIFIED); markAs(MODIFIED);
} }
if ((node.state == CLEAN) || (node.state == DELETED)) { // TODO this is a rather minimal fix for bug http://helma.org/bugs/show_bug.cgi?id=554
// - eventually we want to get rid of this code as a whole.
if (state != TRANSIENT && (node.state == CLEAN || node.state == DELETED)) {
node.markAs(MODIFIED); node.markAs(MODIFIED);
} }