From cc6b601362aab77f5fb7ad84fe9d2f96954817c4 Mon Sep 17 00:00:00 2001 From: Vitalii Bezsheiko Date: Wed, 11 Sep 2024 00:04:13 +0300 Subject: [PATCH] pkp/pkp-lib#10328 Fix multilingual attributes retrieval --- classes/core/traits/ModelWithSettings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/core/traits/ModelWithSettings.php b/classes/core/traits/ModelWithSettings.php index 255b8c02298..5c820f2d8d0 100644 --- a/classes/core/traits/ModelWithSettings.php +++ b/classes/core/traits/ModelWithSettings.php @@ -127,7 +127,7 @@ protected function setSchemaData(): void $schema = $schemaService->get($this->getSchemaName()); $this->convertSchemaToCasts($schema); $this->settings = array_merge($this->settings, $schemaService->groupPropsByOrigin($this->getSchemaName())[Schema::ATTRIBUTE_ORIGIN_SETTINGS]); - $this->multilingualProps = array_merge($this->settings, $schemaService->getMultilingualProps($this->getSchemaName())); + $this->multilingualProps = array_merge($this->multilingualProps, $schemaService->getMultilingualProps($this->getSchemaName())); } /**