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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

erwan
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;
+    }
 }