Skip to content

Commit

Permalink
#3167 Renovator MCP: ensure old source path is removed (#3218)
Browse files Browse the repository at this point in the history
  • Loading branch information
YegorKozlov authored Nov 22, 2023
1 parent edc9e3a commit 2615e1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com)

## Added

- #3162 - Renovator MCP: ensure old source path is removed
- #3205 - HttpClientFactory: Expose a method to customize the underlying HttpClient
- #3209 - WARN org.apache.sling.models.impl.ModelAdapterFactory - Cannot provide default for java.util.List<java.lang.String>
- #3197 - Encrypt user credentials in ACS Content Sync
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ public void findReferences(ResourceResolver rr, String referenceSearchRoot, int
.filter(p -> isActivated(rr, p.getPagePath()))
.map(ReferenceSearch.Info::getPagePath)
.collect(Collectors.toCollection(() -> publishedReferences));
if(isActivated(rr, sourcePath)){
publishedReferences.add(destinationPath);
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void moveOrClonePage(ResourceResolver rr, PageManager manager, String co
manager.move(source,
getDestinationPath(),
getPreviousSibling(),
true,
false,
true,
listToStringArray(getAllReferences()),
listToStringArray(getPublishedReferences()));
Expand Down

0 comments on commit 2615e1a

Please sign in to comment.