[portal-commits] JBoss Portal SVN: r5922 - trunk/core/src/main/org/jboss/portal/core/aspects/controller

portal-commits at lists.jboss.org portal-commits at lists.jboss.org
Wed Dec 20 20:29:32 EST 2006


Author: julien at jboss.com
Date: 2006-12-20 20:29:30 -0500 (Wed, 20 Dec 2006)
New Revision: 5922

Modified:
   trunk/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
Log:
fix minor bug introduced in previous commit (show edit content on non dashboard page)

Modified: trunk/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java
===================================================================
--- trunk/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java	2006-12-21 01:26:34 UTC (rev 5921)
+++ trunk/core/src/main/org/jboss/portal/core/aspects/controller/PageCustomizerInterceptor.java	2006-12-21 01:29:30 UTC (rev 5922)
@@ -164,10 +164,13 @@
             dashboard = rpc.isDashboard();
 
             //
-            ParametersStateString navState = new ParametersStateString();
-            navState.setValue("editPageSelect", rpc.getPage().getName());
-            InvokePortletInstanceRenderCommand command = new InvokePortletInstanceRenderCommand("ConfiguratorPortletInstance", navState);
-            configureURL = cc.getControllerContext().renderURL(command, null, null);
+            if (dashboard)
+            {
+               ParametersStateString navState = new ParametersStateString();
+               navState.setValue("editPageSelect", rpc.getPage().getName());
+               InvokePortletInstanceRenderCommand command = new InvokePortletInstanceRenderCommand("ConfiguratorPortletInstance", navState);
+               configureURL = cc.getControllerContext().renderURL(command, null, null);
+            }
          }
          String pageURL;
          String label;




More information about the portal-commits mailing list