EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
htmlizer has one
Yuri Kuznetsov0ec2112b0308
diff --git a/application/Espo/Core/Htmlizer/Htmlizer.php b/application/Espo/Core/Htmlizer/Htmlizer.phpindex de181fcb76..994f3b2932 100644--- a/application/Espo/Core/Htmlizer/Htmlizer.php+++ b/application/Espo/Core/Htmlizer/Htmlizer.php@@ -411,7 +411,8 @@ class Htmlizerif ($relationType !== Entity::BELONGS_TO &&- $relationType !== Entity::BELONGS_TO_PARENT+ $relationType !== Entity::BELONGS_TO_PARENT &&+ $relationType !== Entity::HAS_ONE) {continue;}diff --git a/client/src/views/template/fields/variables.js b/client/src/views/template/fields/variables.jsindex bd9936474f..ff97114908 100644--- a/client/src/views/template/fields/variables.js+++ b/client/src/views/template/fields/variables.js@@ -173,7 +173,7 @@ export default class extends BaseFieldView {linkList.forEach(link => {const type = links[link].type;- if (type !== 'belongsTo') {+ if (type !== 'belongsTo' && type !== 'hasOne') {return;}