EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Fix Htmlizer translation for enum fields
AntonSlyzhko8ee66c2d08e3
diff --git a/application/Espo/Core/Htmlizer/Htmlizer.php b/application/Espo/Core/Htmlizer/Htmlizer.phpindex d5c8bd224f..9b5efac47d 100644--- a/application/Espo/Core/Htmlizer/Htmlizer.php+++ b/application/Espo/Core/Htmlizer/Htmlizer.php@@ -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]);}}