Skip to content

Commit

Permalink
fix [BUG] Translation of structure type doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Fallert committed Aug 28, 2024
1 parent 81b6989 commit f37a83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/MetadataController.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ private function parseOwner(int $i, array &$metadata) : void
*/
private function parseType(int $i, array &$metadata) : void
{
$structure = $this->structureRepository->findOneByIndexName($metadata[$i]['type'][0]);
$structure = $this->structureRepository->findOneByIndexName($metadata[$i]['type']);
if ($structure) {
$metadata[$i]['type'][0] = $structure->getLabel();
}
Expand Down

0 comments on commit f37a83b

Please sign in to comment.