Merge branch 'fix'

This commit is contained in:
Yuri Kuznetsov
2025-09-09 14:57:57 +03:00

View File

@@ -390,8 +390,10 @@ class Htmlizer
$translationPath = $this->metadata
->get(['entityDefs', $entity->getEntityType(), 'fields', $attribute, 'translation']);
if ($translationPath) {
$data[$attribute] = $this->language->get($translationPath . '.' . $attribute, $data[$attribute]);
if ($translationPath && $data[$keyRaw] !== null) {
$path = $translationPath . '.' . $data[$keyRaw];
$data[$attribute] = $this->language->get($path, $data[$keyRaw]);
}
}