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

Modified Files:
      Tag: MMBase-1_8
        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.193.2.12
retrieving revision 1.193.2.13
diff -u -b -r1.193.2.12 -r1.193.2.13
--- MMObjectNode.java   28 Jun 2008 11:57:10 -0000      1.193.2.12
+++ MMObjectNode.java   27 Aug 2008 11:12:04 -0000      1.193.2.13
@@ -38,7 +38,7 @@
  * @author Eduard Witteveen
  * @author Michiel Meeuwissen
  * @author Ernst Bunders
- * @version $Id: MMObjectNode.java,v 1.193.2.12 2008/06/28 11:57:10 nklasens 
Exp $
+ * @version $Id: MMObjectNode.java,v 1.193.2.13 2008/08/27 11:12:04 nklasens 
Exp $
  */
 
 public class MMObjectNode implements org.mmbase.util.SizeMeasurable, 
java.io.Serializable  {
@@ -312,10 +312,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