[Yanel-commits] rev 48141 -
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Tue Mar 16 15:37:54 CET 2010
Author: michi
Date: 2010-03-16 15:37:54 +0100 (Tue, 16 Mar 2010)
New Revision: 48141
Modified:
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
Log:
also check revision
Modified: public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
===================================================================
--- public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2010-03-16 14:37:37 UTC (rev 48140)
+++ public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2010-03-16 14:37:54 UTC (rev 48141)
@@ -248,11 +248,13 @@
public void checkin(String comment) throws Exception {
Node node = getRealm().getRepository().getNode(getPath());
Revision revision = node.checkin(comment);
+
// set initial workflow state and date:
Workflow workflow = WorkflowHelper.getWorkflow(this);
- if (workflow != null) {
+ if (workflow != null && revision != null) {
setWorkflowState(workflow.getInitialState(), revision.getRevisionName());
}
+
/*
if (node.isCheckedOut()) {
String checkoutUserID = node.getCheckoutUserID();
More information about the Yanel-commits
mailing list