diff --git a/applications/party/data/PartyPortletData.xml b/applications/party/data/PartyPortletData.xml
index 967e493a3e..8ed6f76f81 100644
--- a/applications/party/data/PartyPortletData.xml
+++ b/applications/party/data/PartyPortletData.xml
@@ -19,6 +19,11 @@
-->
+
+
+
+
+
diff --git a/framework/common/data/PortalSeedData.xml b/framework/common/data/PortalSeedData.xml
deleted file mode 100644
index 1d254802c6..0000000000
--- a/framework/common/data/PortalSeedData.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/framework/common/ofbiz-component.xml b/framework/common/ofbiz-component.xml
index 405021a08e..56e2378d14 100644
--- a/framework/common/ofbiz-component.xml
+++ b/framework/common/ofbiz-component.xml
@@ -53,8 +53,6 @@ under the License.
-
-
diff --git a/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy b/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy
index ffa3f4d57b..4311e4b730 100644
--- a/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy
+++ b/framework/common/webcommon/WEB-INF/actions/includes/ListPortalPages.groovy
@@ -22,6 +22,19 @@ import org.ofbiz.base.util.*;
import org.ofbiz.entity.condition.*;
// only execute when a user is logged in
if (parameters.userLogin) {
+ if (!parameters.parentPortalPageId) {
+ portalPage = delegator.findByPrimaryKey("PortalPage", [portalPageId : parameters.portalPageId]);
+ if (portalPage) {
+ parameters.parentPortalPageId = portalPage.parentPortalPageId;
+ if (!parameters.parentPortalPageId) {
+ if(portalPage.originalPortalPageId) {
+ parameters.parentPortalPageId = portalPage.originalPortalPageId;
+ } else {
+ parameters.parentPortalPageId = portalPage.portalPageId;
+ }
+ }
+ }
+ }
userLoginSecurityGroupId = null;
condSec = EntityCondition.makeCondition([
EntityCondition.makeCondition("groupId", EntityOperator.LIKE, parameters.parentPortalPageId + "%"),
@@ -41,8 +54,11 @@ if (parameters.userLogin) {
EntityCondition.makeCondition("parentPortalPageId", EntityOperator.EQUALS, null)
],EntityOperator.AND);
portalMainPages = delegator.findList("PortalPage", cond1, null, null, null, false);
+ parentPortalPageId = null;
if (portalMainPages) {
parentPortalPageId = portalMainPages.get(0).portalPageId;
+ } else {
+ parentPortalPageId = parameters.parentPortalPageId
}
// get user and system pages
ppCond =
diff --git a/framework/common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy b/framework/common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy
index 62cd8e642d..86adb949e0 100644
--- a/framework/common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy
+++ b/framework/common/webcommon/WEB-INF/actions/includes/retrievePortletAttributes.groovy
@@ -32,6 +32,5 @@ iter = portletAttributes.iterator();
while (iter) {
attribute = iter.next();
-
context.put(attribute.attrName, attribute.attrValue);
}
diff --git a/framework/common/webcommon/WEB-INF/common-controller.xml b/framework/common/webcommon/WEB-INF/common-controller.xml
index 5fa63223e6..bb178edf0f 100644
--- a/framework/common/webcommon/WEB-INF/common-controller.xml
+++ b/framework/common/webcommon/WEB-INF/common-controller.xml
@@ -107,7 +107,7 @@ under the License.
-
+
diff --git a/framework/common/webcommon/WEB-INF/portal-controller.xml b/framework/common/webcommon/WEB-INF/portal-controller.xml
index c6bac9fe8b..56274c6da0 100644
--- a/framework/common/webcommon/WEB-INF/portal-controller.xml
+++ b/framework/common/webcommon/WEB-INF/portal-controller.xml
@@ -92,8 +92,8 @@ under the License.
-
-
+
+
diff --git a/framework/common/webcommon/portal/editPortalPage.ftl b/framework/common/webcommon/portal/editPortalPage.ftl
index 3fb4cc93c2..d107bfc835 100644
--- a/framework/common/webcommon/portal/editPortalPage.ftl
+++ b/framework/common/webcommon/portal/editPortalPage.ftl
@@ -62,7 +62,7 @@ under the License.
<#if (portlet.editFormName?has_content && portlet.editFormLocation?has_content)>
-
+
#if>
<#if !firstInColumn>
diff --git a/framework/common/widget/PortalPageScreens.xml b/framework/common/widget/PortalPageScreens.xml
index 2cfa6f59d9..aa585c80ef 100644
--- a/framework/common/widget/PortalPageScreens.xml
+++ b/framework/common/widget/PortalPageScreens.xml
@@ -90,6 +90,24 @@ under the License.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -116,22 +134,4 @@ under the License.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/framework/common/widget/PortletEditForms.xml b/framework/common/widget/PortletEditForms.xml
index 97916c7f42..08cc9eada0 100644
--- a/framework/common/widget/PortletEditForms.xml
+++ b/framework/common/widget/PortletEditForms.xml
@@ -32,8 +32,6 @@ under the License.
-
-
diff --git a/framework/example/widget/example/PortletScreens.xml b/framework/example/widget/example/PortletScreens.xml
index 0988d41cf0..e285affaf9 100644
--- a/framework/example/widget/example/PortletScreens.xml
+++ b/framework/example/widget/example/PortletScreens.xml
@@ -44,8 +44,19 @@ under the License.
+
+
+
-
+
+
+
+
+
+
+
+
+
diff --git a/specialpurpose/myportal/data/MyPortalTypeData.xml b/specialpurpose/myportal/data/MyPortalTypeData.xml
index 070caf1a56..5321aa0171 100644
--- a/specialpurpose/myportal/data/MyPortalTypeData.xml
+++ b/specialpurpose/myportal/data/MyPortalTypeData.xml
@@ -102,8 +102,6 @@
-
-