You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by er...@apache.org on 2010/10/08 18:01:43 UTC

svn commit: r1005875 - /ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy

Author: erwan
Date: Fri Oct  8 16:01:42 2010
New Revision: 1005875

URL: http://svn.apache.org/viewvc?rev=1005875&view=rev
Log:
Avoiding error when trying to edit a portalPage with no portlets

Modified:
    ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy

Modified: ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy?rev=1005875&r1=1005874&r2=1005875&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy (original)
+++ ofbiz/trunk/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy Fri Oct  8 16:01:42 2010
@@ -106,6 +106,8 @@ if (parameters.userLogin) {
 
     context.portalPages = portalPages;
     context.userLoginSecurityGroupId = userLoginSecurityGroupId;
-    parameters.portalPagesSize = portalPages.get(portalPages.size()-1).sequenceNum;
+    if (portalPages) {
+        parameters.portalPagesSize = portalPages.get(portalPages.size()-1).sequenceNum;
+    }
 }