Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPS-25643 Child pages are re-created after deleting them from live #4269

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 18 additions & 2 deletions portal-impl/src/com/liferay/portal/staging/StagingImpl.java
Expand Up @@ -1572,10 +1572,18 @@ protected void publishLayouts(
long[] rowIds = ParamUtil.getLongValues(portletRequest, "rowIds");

for (long selPlid : rowIds) {
boolean delete = ParamUtil.getBoolean(
portletRequest, "delete_" + selPlid);

boolean includeChildren = ParamUtil.getBoolean(
portletRequest, "includeChildren_" + selPlid);

layoutIdMap.put(selPlid, includeChildren);
if (!delete && includeChildren) {
layoutIdMap.put(selPlid, true);
}
else {
layoutIdMap.put(selPlid, false);
}
}
}

Expand Down Expand Up @@ -1729,10 +1737,18 @@ protected void publishToRemote(
long[] rowIds = ParamUtil.getLongValues(portletRequest, "rowIds");

for (long selPlid : rowIds) {
boolean delete = ParamUtil.getBoolean(
portletRequest, "delete_" + selPlid);

boolean includeChildren = ParamUtil.getBoolean(
portletRequest, "includeChildren_" + selPlid);

layoutIdMap.put(selPlid, includeChildren);
if (!delete && includeChildren) {
layoutIdMap.put(selPlid, true);
}
else {
layoutIdMap.put(selPlid, false);
}
}
}

Expand Down