Author: liem_nguyen
Date: 2010-01-26 02:53:01 -0500 (Tue, 26 Jan 2010)
New Revision: 1446
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java
Log:
GTNPORTAL-398 Unknown error when change position of portlet in Edit layout of Dashboard
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java 2010-01-26
02:30:24 UTC (rev 1445)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java 2010-01-26
07:53:01 UTC (rev 1446)
@@ -688,6 +688,14 @@
// We manufacture one name
name = UUID.randomUUID().toString();
}
+
+ // Remove to prevent DuplicateNameException (GTNPORTAL-398)
+ UIComponent uiComponent = dst.get(name);
+ if (uiComponent != null) {
+ dst.remove(uiComponent);
+ }
+
+
if (srcChild instanceof ContainerData)
{
dstChild = dst.add(ObjectType.CONTAINER, name);
Show replies by date