Author: nscavell
Date: 2011-08-10 13:51:44 -0400 (Wed, 10 Aug 2011)
New Revision: 7042
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/operations/navigation/NavigationUtils.java
Log:
GTNPORTAL-1995: Invalid parent uri while exporting navigation fragment.
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/operations/navigation/NavigationUtils.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/operations/navigation/NavigationUtils.java 2011-08-10
13:40:33 UTC (rev 7041)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/operations/navigation/NavigationUtils.java 2011-08-10
17:51:44 UTC (rev 7042)
@@ -123,7 +123,7 @@
children.add(createPageNode(service, node));
NavigationFragment fragment = new NavigationFragment();
- StringBuilder parentUri = new StringBuilder("/");
+ StringBuilder parentUri = new StringBuilder("");
getPath(node.getParent(), parentUri);
fragment.setParentURI(parentUri.toString());
fragment.setNodes(children);
@@ -138,7 +138,7 @@
if (node == null) return;
if (node.getParent() == null) return; // since "default" is the root
node, we ignore it
- parentUri.insert(0, node.getName()).append("/");
+ parentUri.insert(0, node.getName()).insert(0, "/");
getPath(node.getParent(), parentUri);
}
Show replies by date