Skip to content

Commit 850d84d

Browse files
committed
BUGFIX: set targetWorkspaceName to the nodes Workspace if there is no targetWorkspaceName passed to the function
1 parent f0ef17a commit 850d84d

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)