Fix Htmlizer translation for enum fields

This commit is contained in:
AntonSlyzhko
2025-09-09 14:23:56 +03:00
committed by GitHub
parent 3608af3836
commit 8ee66c2d08

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]);
}
}