Author: hfnukal
Date: 2011-10-01 12:23:56 -0400 (Sat, 01 Oct 2011)
New Revision: 7579
Modified:
epp/portal/branches/EPP_5_2_Branch/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UINavigationNodeSelector.java
Log:
JBEPP-716 Add Node button always create new node on the top level
Modified:
epp/portal/branches/EPP_5_2_Branch/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UINavigationNodeSelector.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UINavigationNodeSelector.java 2011-10-01
16:14:30 UTC (rev 7578)
+++
epp/portal/branches/EPP_5_2_Branch/portlet/exoadmin/src/main/java/org/exoplatform/navigation/webui/component/UINavigationNodeSelector.java 2011-10-01
16:23:56 UTC (rev 7579)
@@ -394,7 +394,11 @@
TreeNode node;
if (ParameterValidation.isNullOrEmpty(nodeID))
{
- node = uiNodeSelector.getRootNode();
+ node = uiNodeSelector.getSelectedNode();
+ if(node == null)
+ {
+ node = uiNodeSelector.getRootNode();
+ }
}
else
{