EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix null check
Yuri Kuznetsove350255bd7cc
diff --git a/application/Espo/Core/Htmlizer/Htmlizer.php b/application/Espo/Core/Htmlizer/Htmlizer.phpindex 9b5efac47d..5b5eef9213 100644--- a/application/Espo/Core/Htmlizer/Htmlizer.php+++ b/application/Espo/Core/Htmlizer/Htmlizer.php@@ -390,8 +390,10 @@ class Htmlizer$translationPath = $this->metadata->get(['entityDefs', $entity->getEntityType(), 'fields', $attribute, 'translation']);- if ($translationPath) {- $data[$attribute] = $this->language->get($translationPath . '.' . $data[$keyRaw], $data[$attribute]);+ if ($translationPath && $data[$keyRaw] !== null) {+ $path = $translationPath . '.' . $data[$keyRaw];++ $data[$attribute] = $this->language->get($path, $data[$keyRaw]);}}