Skip to content

Commit

Permalink
Fixed "include siblings" option in publish dialog (github issue #797).
Browse files Browse the repository at this point in the history
  • Loading branch information
gWestenberger committed Sep 27, 2024
1 parent 8b8a311 commit 5eab9d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/opencms/ade/publish/CmsPublishService.java
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ private ResourceMap getResourcesAndRelated(
if (includeSiblings) {
addSiblings(publishResources);
}
Set<CmsResource> visibleResources = resources.stream().filter(
Set<CmsResource> visibleResources = publishResources.stream().filter(
resource -> getCmsObject().existsResource(
resource.getStructureId(),
CmsResourceFilter.ALL.addRequireVisible())
Expand All @@ -515,7 +515,7 @@ private ResourceMap getResourcesAndRelated(
result = relationFinder.getPublishRelatedResources();
} else {
result = new ResourceMap();
for (CmsResource resource : publishResources) {
for (CmsResource resource : visibleResources) {
if (keepOriginalUnchangedResources || !resource.getState().isUnchanged()) {
result.put(resource, new HashSet<CmsResource>());
}
Expand Down

0 comments on commit 5eab9d4

Please sign in to comment.