Author: tam_nguyen
Date: 2009-11-10 03:11:13 -0500 (Tue, 10 Nov 2009)
New Revision: 538
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/PageTask.java
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestUserPortalConfigService.java
Log:
GTNPORTAL-119 Problem when clone node
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/PageTask.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/PageTask.java 2009-11-10
04:15:32 UTC (rev 537)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/config/tasks/PageTask.java 2009-11-10
08:11:13 UTC (rev 538)
@@ -151,6 +151,15 @@
org.gatein.mop.api.workspace.Page dstPage = dstPages.addChild(cloneName);
//
+
+ Attributes srcAttrs = srcPage.getAttributes();
+ Attributes dstAttrs = dstPage.getAttributes();
+ for (String key : srcAttrs.getKeys())
+ {
+ Object value = srcAttrs.getObject(key);
+ dstAttrs.setObject(key, value);
+ }
+
copy(srcPage, dstPage, srcPage.getRootComponent(), dstPage.getRootComponent());
//
Modified:
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestUserPortalConfigService.java
===================================================================
---
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestUserPortalConfigService.java 2009-11-10
04:15:32 UTC (rev 537)
+++
portal/trunk/component/portal/src/test/java/org/exoplatform/portal/config/TestUserPortalConfigService.java 2009-11-10
08:11:13 UTC (rev 538)
@@ -465,7 +465,7 @@
// Julien : see who added that and find out is test is relevant or not
-/*
+
public void testClonePage()
{
new UnitTest()
@@ -486,8 +486,8 @@
}
}.execute(null);
}
-*/
+
public void testUpdatePage()
{
Show replies by date