You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by rf...@apache.org on 2008/03/13 17:24:12 UTC
svn commit: r636799 -
/lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java
Author: rfrovarp
Date: Thu Mar 13 09:24:07 2008
New Revision: 636799
URL: http://svn.apache.org/viewvc?rev=636799&view=rev
Log:
Would only return link if requesting for current document, which seems to be an error. This fixes 44139 and gets 42872 back to where it should be.
Modified:
lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java
Modified: lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java?rev=636799&r1=636798&r2=636799&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java (original)
+++ lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java Thu Mar 13 09:24:07 2008
@@ -265,7 +265,7 @@
SiteNode node = document.area().getSite().getNode(path);
Link link = null;
String uuid = node.getUuid();
- if (uuid != null && uuid.equals(document.getUUID())) {
+ if (uuid != null) {
if (node.hasLink(document.getLanguage())) {
link = node.getLink(document.getLanguage());
} else if (node.getLanguages().length > 0) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org