Changeset 29636

Show
Ignore:
Timestamp:
01/25/08 17:17:38 (10 months ago)
Author:
bstefanescu
Message:

fixed bug in doc part serialization

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.core/trunk/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/model/impl/DocumentPartImpl.java

    r28983 r29636  
    183183        out.writeInt(size); 
    184184        if (size > 0) { 
    185             for (Property child : getNonPhantomChildren()) { 
     185            for (Property child : props) { 
    186186                serializeProperty(child, out); 
    187187            } 
     
    261261            throws ClassNotFoundException, IOException, PropertyException { 
    262262        // children are transient so we need to create them explicitely 
    263         children = new Hashtable<String, Property>(); 
     263        parent.children = new Hashtable<String, Property>(); 
    264264        // read serialized children 
    265265        int size = in.readInt();