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