Merge pull request #3469 from AntonSlyzhko/htmlizer-translation-fix

Fix Htmlizer translation for enum fields
This commit is contained in:
Yurii Kuznietsov
2025-09-09 14:51:58 +03:00
committed by GitHub

View File

@@ -391,7 +391,7 @@ class Htmlizer
->get(['entityDefs', $entity->getEntityType(), 'fields', $attribute, 'translation']);
if ($translationPath) {
$data[$attribute] = $this->language->get($translationPath . '.' . $attribute, $data[$attribute]);
$data[$attribute] = $this->language->get($translationPath . '.' . $data[$keyRaw], $data[$attribute]);
}
}