Skip to content

Commit 53be7e9

Browse files
committed
[BUGFIX] Fix indexing during publishing
The fix in PR #26 for the bug introduced in PR #25 contained another bug that broke indexing of nodes that had a target workspace associated.
1 parent 780c18a commit 53be7e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function flushQueues() {
117117
if (!isset($this->targetWorkspaceNamesForNodesToBeIndexed[$nodeToBeIndexed->getContextPath()])) {
118118
$this->nodeIndexer->indexNode($nodeToBeIndexed);
119119
} else {
120-
$this->nodeIndexer->indexNode($nodeToBeIndexed, $this->targetWorkspaceNamesForNodesToBeIndexed[$nodeToBeIndexed->getWorkspace()->getName()]);
120+
$this->nodeIndexer->indexNode($nodeToBeIndexed, $this->targetWorkspaceNamesForNodesToBeIndexed[$nodeToBeIndexed->getContextPath()]);
121121
}
122122
}
123123

0 commit comments

Comments
 (0)