Author: mwringe
Date: 2010-03-29 10:49:03 -0400 (Mon, 29 Mar 2010)
New Revision: 2384
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java
Log:
GTNPORTAL-858: fix mapper to remove a page reference if its null instead of just ignoring
it. This fixes an issue in which pages are thought to be deleted, but still persist.
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-03-29
14:44:37 UTC (rev 2383)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/pom/data/Mapper.java 2010-03-29
14:49:03 UTC (rev 2384)
@@ -193,6 +193,11 @@
PageLink link = dst.linkTo(ObjectType.PAGE_LINK);
link.setPage(target);
}
+ else
+ {
+ PageLink link = dst.linkTo(ObjectType.PAGE_LINK);
+ link.setPage(null);
+ }
//
Described described = dst.adapt(Described.class);
Show replies by date