diff --git a/Classes/Controller/MetadataController.php b/Classes/Controller/MetadataController.php index 67afcbc7f..cdb4cfd68 100644 --- a/Classes/Controller/MetadataController.php +++ b/Classes/Controller/MetadataController.php @@ -460,7 +460,7 @@ private function parseCollections(int $i, $value, array &$metadata) : void foreach ($value as $entry) { $collection = $this->collectionRepository->findOneByIndexName($entry); if ($collection) { - $metadata[$i]['collection'][$j] = $collection->getLabel() ? : ''; + $metadata[$i]['collection'] = $collection->getLabel() ? : ''; $j++; } }