mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Fix Htmlizer translation for enum fields
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user