Author: truong.le
Date: 2009-12-30 01:45:52 -0500 (Wed, 30 Dec 2009)
New Revision: 1150
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageForm.java
Log:
GTNPORTAL-412: Don't show content of page (node) after edit node's page in special
case
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageForm.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageForm.java 2009-12-29
12:14:07 UTC (rev 1149)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageForm.java 2009-12-30
06:45:52 UTC (rev 1150)
@@ -280,6 +280,7 @@
UIPage uiPage = uiPageForm.getUIPage();
if (uiPage == null)
return;
+ String storageId = uiPage.getStorageId();
Page page = new Page();
page.setPageId(uiPage.getPageId());
uiPageForm.invokeSetBindingBean(page);
@@ -355,6 +356,7 @@
page.setModifier(pcontext.getRemoteUser());
PortalDataMapper.toUIPage(uiPage, page);
+ uiPage.setStorageId(storageId);
// if(page.getTemplate() == null) page.setTemplate(uiPage.getTemplate()) ;
if (page.getChildren() == null)
page.setChildren(new ArrayList<ModelObject>());