From 78a4003acafed69150f10fd966ac46f19eabb65e Mon Sep 17 00:00:00 2001 From: Denny Lubitz Date: Fri, 24 Feb 2023 16:33:47 +0100 Subject: [PATCH] Ensure properties are loaded properly --- Classes/Indexer/NodeIndexer.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/Indexer/NodeIndexer.php b/Classes/Indexer/NodeIndexer.php index 192e35a..e0a3956 100644 --- a/Classes/Indexer/NodeIndexer.php +++ b/Classes/Indexer/NodeIndexer.php @@ -135,8 +135,7 @@ public function indexNode(NodeInterface $node, $targetWorkspaceName = null, $ind $fulltextData = []; - if (isset($this->indexedNodeData[$identifier])) { - $properties = $this->indexClient->findOneByIdentifier($identifier); + if (isset($this->indexedNodeData[$identifier]) ($properties = $this->indexClient->findOneByIdentifier($identifier)) !== false) { unset($properties['__identifier__']); $properties['__workspace'] .= ', #' . ($targetWorkspaceName ?? $node->getContext()->getWorkspaceName()) . '#'; if (array_key_exists('__dimensionshash', $properties)) {