Update of /var/cvs/src/org/mmbase/module/core
In directory james.mmbase.org:/tmp/cvs-serv31674/src/org/mmbase/module/core

Modified Files:
        MMObjectNode.java 
Log Message:
MMB-1713  Bridge transaction always commits nodes even when not changed


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/module/core
See also: http://www.mmbase.org/jira/browse/MMB-1713


Index: MMObjectNode.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/module/core/MMObjectNode.java,v
retrieving revision 1.225
retrieving revision 1.226
diff -u -b -r1.225 -r1.226
--- MMObjectNode.java   23 Aug 2008 18:58:31 -0000      1.225
+++ MMObjectNode.java   27 Aug 2008 11:11:58 -0000      1.226
@@ -38,7 +38,7 @@
  * @author Eduard Witteveen
  * @author Michiel Meeuwissen
  * @author Ernst Bunders
- * @version $Id: MMObjectNode.java,v 1.225 2008/08/23 18:58:31 michiel Exp $
+ * @version $Id: MMObjectNode.java,v 1.226 2008/08/27 11:11:58 nklasens Exp $
  */
 
 public class MMObjectNode implements org.mmbase.util.SizeMeasurable, 
java.io.Serializable { // Comparable<MMObjectNode>  {
@@ -292,10 +292,14 @@
      * Commit this node to the storage
      * @param user the user who commits the node.
      *        Used to set security-related information
-     * @return <code>true</code> if succesful
+     * @return <code>true</code> if successful
      * @since MMBase-1.7
      */
     public boolean commit(UserContext user) {
+        if (!isChanged()) {
+            return true;
+        }
+
         boolean success = parent.safeCommit(this);
         if (success) {
             MMBaseCop mmbaseCop = parent.getMMBase().getMMBaseCop();
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to