We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3e6f7d commit 34d768eCopy full SHA for 34d768e
1 file changed
Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer/NodeIndexer.php
@@ -170,7 +170,7 @@ public function getIndex() {
170
public function indexNode(Node $node, $targetWorkspaceName = NULL) {
171
$contextPath = $node->getContextPath();
172
if ($targetWorkspaceName !== NULL) {
173
- $contextPath = str_replace($node->getWorkspace()->getName(), $targetWorkspaceName, $contextPath);
+ $contextPath = str_replace($node->getContext()->getWorkspace()->getName(), $targetWorkspaceName, $contextPath);
174
}
175
$contextPathHash = sha1($contextPath);
176
$nodeType = $node->getNodeType();
0 commit comments