Skip to content

EspoCRM – Open Source CRM Application

htmlizer has one

Yuri Kuznetsov0ec2112b0308
diff --git a/application/Espo/Core/Htmlizer/Htmlizer.php b/application/Espo/Core/Htmlizer/Htmlizer.php
index de181fcb76..994f3b2932 100644
--- a/application/Espo/Core/Htmlizer/Htmlizer.php
+++ b/application/Espo/Core/Htmlizer/Htmlizer.php
@@ -411,7 +411,8 @@ class Htmlizer
if (
$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.js
index 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;
}