Author: andreas
Date: Mon Oct 29 08:33:17 2007
New Revision: 589677
URL: http://svn.apache.org/viewvc?rev=589677&view=rev
Log:
Lock authoring document in deactivate usecase. This fixes bug #43460.
Modified:
lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Deactivate.java
Modified: lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Deactivate.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Deactivate.java?rev=589677&r1=589676&r2=589677&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Deactivate.java (original)
+++ lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Deactivate.java Mon Oct 29 08:33:17 2007
@@ -84,7 +84,8 @@
List nodes = new ArrayList();
Document doc = getSourceDocument();
- if(doc != null) {
+ if (doc != null) {
+ nodes.add(doc.getRepositoryNode());
Document liveDoc = doc.getAreaVersion(Publication.LIVE_AREA);
nodes.add(liveDoc.getRepositoryNode());
nodes.add(liveDoc.area().getSite().getRepositoryNode());
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.