Author: chris.laprun(a)jboss.com
Date: 2009-05-05 12:40:12 -0400 (Tue, 05 May 2009)
New Revision: 13296
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
Log:
- JBPORTAL-2384: Handle pages named default separately to replicate previous behavior.
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java 2009-05-05
14:20:53 UTC (rev 13295)
+++
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java 2009-05-05
16:40:12 UTC (rev 13296)
@@ -249,11 +249,12 @@
}
else
{
- // Copy to dashboard link: only if page doesn't already exist in the
dashboard
+ // Copy to dashboard link: only if page doesn't already exist in the
dashboard and is not named
+ // default (to preserve previous behavior).
if ((user != null))
{
// if the page exists in dashboard, its id will be
dashboardId.getChildId(pageName)...
- if
(controller.getPortalObjectContainer().getObject(cm.getDashboardIdFor(user).getChildId(pageName))
== null)
+ if (!"default".equals(pageName) &&
controller.getPortalObjectContainer().getObject(cm.getDashboardIdFor(user).getChildId(pageName))
== null)
{
ImportPageToDashboardCommand iptdc = new
ImportPageToDashboardCommand(page.getId());
rd.setAttribute("org.jboss.portal.header.COPY_TO_DASHBOARD_URL", new
PortalURLImpl(iptdc, controllerCtx, null, null));
Show replies by date