Author: andreas
Date: Wed Jan 7 02:57:57 2009
New Revision: 732298
URL: http://svn.apache.org/viewvc?rev=732298&view=rev
Log:
Add visibleInNav sitetree attribute only if node is not visible, not the other way round.
Modified:
lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SaxTreeWriter.java
Modified: lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SaxTreeWriter.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SaxTreeWriter.java?rev=732298&r1=732297&r2=732298&view=diff
==============================================================================
--- lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SaxTreeWriter.java (original)
+++ lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SaxTreeWriter.java Wed Jan 7 02:57:57 2009
@@ -104,10 +104,8 @@
if (uuid != null) {
attrs.addAttribute("", ATTR_UUID, ATTR_UUID, TYPE_CDATA, uuid);
}
- boolean visible = node.isVisible();
- if (visible) {
- attrs.addAttribute("", ATTR_VISIBLE, ATTR_VISIBLE, TYPE_CDATA, Boolean
- .toString(visible));
+ if (!node.isVisible()) {
+ attrs.addAttribute("", ATTR_VISIBLE, ATTR_VISIBLE, TYPE_CDATA, Boolean.FALSE.toString());
}
handler.startElement(NS, ELEM_NODE, ELEM_NODE, attrs);
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.