Skip to content

Commit

Permalink
Merge pull request #48 from dlubitz/bugfix-properties-not-loaded
Browse files Browse the repository at this point in the history
BUGFIX: Ensure properties are loaded properly or indexed again
  • Loading branch information
dlubitz authored May 15, 2023
2 parents 5b62c98 + 284a0d7 commit 562fa47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/Indexer/NodeIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 562fa47

Please sign in to comment.