You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2005/04/13 11:44:04 UTC

DO NOT REPLY [Bug 34432] New: - link attribute has been fixed within 1.2.X but needs to be checked also in 1.4-dev

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34432>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34432

           Summary: link attribute has been fixed within 1.2.X but needs to
                    be checked also in 1.4-dev
           Product: Lenya
           Version: 1.4
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Miscellaneous
        AssignedTo: dev@lenya.apache.org
        ReportedBy: michi@apache.org


Index: src/java/org/apache/lenya/cms/publication/AbstractPublication.java
===================================================================
--- src/java/org/apache/lenya/cms/publication/AbstractPublication.java 
(revision 161045)
+++ src/java/org/apache/lenya/cms/publication/AbstractPublication.java  (working
copy)
@@ -500,6 +500,12 @@
                            
destinationNode.setNodeAttribute(SiteTreeNodeImpl.VISIBLEINNAV_ATTRIBUTE_NAME,
                                     visibility);

+                            // also update the link attribute if necessary
+                            if (sourceNode.hasLink() !=
destinationNode.hasLink()) {
+                                String link = (sourceNode.hasLink() ? "true" :
"false");
+                               
destinationNode.setNodeAttribute(SiteTreeNodeImpl.LINK_ATTRIBUTE_NAME, link);
+                            }
+
                         }
                     }
                 }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org