Skip to content

Commit becfa35

Browse files
committed
[BUGFIX] Node indexing broken due to required parameter
The recent adjustment of the node indexing to the changed publishing behavior in Neos broke (manual) node indexing. This change declares the targetWorkspace parameter to indexNode() optional as intended.
1 parent 4043b1a commit becfa35

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
@@ -73,7 +73,7 @@ public function injectSettings(array $settings) {
7373
* @param mixed $targetWorkspace In case this is triggered during publishing, a Workspace will be passed in
7474
* @return void
7575
*/
76-
public function indexNode(Node $node, $targetWorkspace) {
76+
public function indexNode(Node $node, $targetWorkspace = NULL) {
7777
$this->nodesToBeRemoved->detach($node);
7878
$this->nodesToBeIndexed->attach($node);
7979
$this->targetWorkspaceNamesForNodesToBeIndexed[$node->getContextPath()] = $targetWorkspace instanceof \TYPO3\TYPO3CR\Domain\Model\Workspace ? $targetWorkspace->getName() : NULL;

0 commit comments

Comments
 (0)