Skip to content

Commit a8fabe2

Browse files
Merge pull request #58 from punktDeForks/bugfix/fix-removal-for-fallback-dimensions
BUGFIX: set targetWorkspaceName to the nodes Workspace if there is no…
2 parents 30232f9 + 850d84d commit a8fabe2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Classes/Indexer/NodeIndexer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public function removeNode(NodeInterface $node, string $targetWorkspaceName = nu
105105
}
106106

107107
$dimensionCombinations = $this->dimensionService->getDimensionCombinationsForIndexing($node);
108+
$targetWorkspaceName = $targetWorkspaceName ?? $node->getWorkspace()->getName();
108109

109110
if (array_filter($dimensionCombinations) === []) {
110111
$removalJob = new RemovalJob($this->indexNamePostfix, $targetWorkspaceName, $this->nodeAsArray($node));

0 commit comments

Comments
 (0)