svn commit: r636799 - /lenya/trunk/src/modules-core/workflow/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
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) {
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.