Skip to content

Commit 5951598

Browse files
committed
Merge branch 'master' into dev-searchcommons
2 parents fcd1104 + 34d768e commit 5951598

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer/NodeIndexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function getIndex() {
138138
public function indexNode(Node $node, $targetWorkspaceName = NULL) {
139139
$contextPath = $node->getContextPath();
140140
if ($targetWorkspaceName !== NULL) {
141-
$contextPath = str_replace($node->getWorkspace()->getName(), $targetWorkspaceName, $contextPath);
141+
$contextPath = str_replace($node->getContext()->getWorkspace()->getName(), $targetWorkspaceName, $contextPath);
142142
}
143143
$contextPathHash = sha1($contextPath);
144144
$nodeType = $node->getNodeType();

0 commit comments

Comments
 (0)