From 5b82a767bbb61b3edef0c4379f3cae0777910c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20S=C5=82omka?= Date: Mon, 11 Sep 2023 14:03:34 +0200 Subject: [PATCH] Fixed languages issue --- .../Repository/EventSubscriber/NameSchemaSubscriber.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php b/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php index bb237ad09d..71bfbdbcdc 100644 --- a/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php +++ b/src/lib/Repository/EventSubscriber/NameSchemaSubscriber.php @@ -69,13 +69,8 @@ public function onResolveContentNameSchema(ResolveContentNameSchemaEvent $event) return; } - $languageList = array_map( - static fn (Language $language): string => $language->getLanguageCode(), - (array)$event->getContent()->getVersionInfo()->getLanguages() - ); - $tokenValues = $this->processEvent( - $languageList, + $event->getLanguageCodes(), $event->getSchemaIdentifiers()['field'], $event->getContentType(), $event->getContent(),