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