Changeset 29683
- Timestamp:
- 01/27/08 18:37:54 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.ecm.core/branches/1.4/nuxeo-core/src/main/java/org/nuxeo/ecm/core/api/AbstractSession.java
r29680 r29683 1601 1601 1602 1602 DocumentModel docModel = readModel(doc, null); 1603 1604 // we're about to overwrite the document, make sure it's archived 1605 createDocumentSnapshot(docModel); 1606 1603 1607 final Map<String, Object> options = new HashMap<String, Object>(); 1604 1608 … … 1622 1626 1623 1627 doc.restore(version.getLabel()); 1624 doc.checkOut(); // why isn't it already checkedout? 1628 // restore gives us a checked in document, so do a checkout 1629 doc.checkOut(); 1625 1630 1626 1631 // re-read doc model after restoration
