Skip to content

Commit

Permalink
Fix locale specific indexing of articles (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored Mar 6, 2020
1 parent 99ee436 commit b8356e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Document/Subscriber/ArticleSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function handleScheduleIndex(AbstractMappingEvent $event)
$document = $document->getParent();
}

$this->documents[$document->getUuid()] = [
$this->documents[$document->getUuid() . '_' . $document->getLocale()] = [
'uuid' => $document->getUuid(),
'locale' => $document->getLocale(),
];
Expand All @@ -166,7 +166,7 @@ public function handleScheduleIndexLive(AbstractMappingEvent $event)
$document = $document->getParent();
}

$this->liveDocuments[$document->getUuid()] = [
$this->liveDocuments[$document->getUuid() . '_' . $document->getLocale()] = [
'uuid' => $document->getUuid(),
'locale' => $document->getLocale(),
];
Expand Down Expand Up @@ -245,7 +245,7 @@ public function persistPageDataOnReorder(ReorderEvent $event)
$document->setWorkflowStage(WorkflowStage::TEST);
$this->documentManager->persist($document, $this->documentInspector->getLocale($document));

$this->documents[$document->getUuid()] = [
$this->documents[$document->getUuid() . '_' . $document->getLocale()] = [
'uuid' => $document->getUuid(),
'locale' => $document->getLocale(),
];
Expand Down Expand Up @@ -438,7 +438,7 @@ public function handleRemovePage(RemoveEvent $event)
}

$document = $document->getParent();
$this->documents[$document->getUuid()] = [
$this->documents[$document->getUuid() . '_' . $document->getLocale()] = [
'uuid' => $document->getUuid(),
'locale' => $document->getLocale(),
];
Expand Down Expand Up @@ -485,7 +485,7 @@ public function handleCopy(CopyEvent $event)
}

$uuid = $event->getCopiedNode()->getIdentifier();
$this->documents[$uuid] = [
$this->documents[$uuid . '_' . $document->getLocale()] = [
'uuid' => $uuid,
'locale' => $document->getLocale(),
];
Expand Down

0 comments on commit b8356e5

Please sign in to comment.