We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fcd1104 + 34d768e commit 5951598Copy full SHA for 5951598
1 file changed
Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer/NodeIndexer.php
@@ -138,7 +138,7 @@ public function getIndex() {
138
public function indexNode(Node $node, $targetWorkspaceName = NULL) {
139
$contextPath = $node->getContextPath();
140
if ($targetWorkspaceName !== NULL) {
141
- $contextPath = str_replace($node->getWorkspace()->getName(), $targetWorkspaceName, $contextPath);
+ $contextPath = str_replace($node->getContext()->getWorkspace()->getName(), $targetWorkspaceName, $contextPath);
142
}
143
$contextPathHash = sha1($contextPath);
144
$nodeType = $node->getNodeType();
0 commit comments