EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
wysiwyg no none in list view
Yuri Kuznetsov415e9503f7a6
diff --git a/client/res/templates/fields/wysiwyg/detail.tpl b/client/res/templates/fields/wysiwyg/detail.tplindex 4763be6e05..1d0dbbac59 100644--- a/client/res/templates/fields/wysiwyg/detail.tpl+++ b/client/res/templates/fields/wysiwyg/detail.tpl@@ -9,4 +9,4 @@{{else}}<div class="plain complex-text hidden">{{complexText value}}</div>{{/unless}}-{{#unless isNotEmpty}}{{#if valueIsSet}}<span class="none-value">{{translate 'None'}}</span>{{/if}}{{/unless}}+{{#if isNone}}<span class="none-value">{{translate 'None'}}</span>{{/if}}diff --git a/client/src/views/fields/wysiwyg.js b/client/src/views/fields/wysiwyg.jsindex 3ece4edf89..6beec54d2f 100644--- a/client/src/views/fields/wysiwyg.js+++ b/client/src/views/fields/wysiwyg.js@@ -201,6 +201,8 @@ class WysiwygFieldView extends TextFieldView {data.useIframe = this.useIframe;data.isPlain = !this.isHtml();+ data.isNone = !data.isNotEmpty && data.valueIsSet && this.isDetailMode();+// noinspection JSValidateTypesreturn data;}