diff --git a/client/res/templates/fields/array/detail.tpl b/client/res/templates/fields/array/detail.tpl index 741894a44f..2c88ecc017 100644 --- a/client/res/templates/fields/array/detail.tpl +++ b/client/res/templates/fields/array/detail.tpl @@ -1 +1 @@ -{{{value}}} +{{#unless isEmpty}}{{{value}}}{{else}}{{translate 'None'}}{{/unless}} diff --git a/client/src/views/fields/array.js b/client/src/views/fields/array.js index 84858e30df..8ab2507f61 100644 --- a/client/src/views/fields/array.js +++ b/client/src/views/fields/array.js @@ -50,7 +50,8 @@ Espo.define('views/fields/array', ['views/fields/base', 'lib!Selectize'], functi selected: this.selected, translatedOptions: this.translatedOptions, hasOptions: this.params.options ? true : false, - itemHtmlList: itemHtmlList + itemHtmlList: itemHtmlList, + isEmpty: (this.selected || []).length === 0 }, Dep.prototype.data.call(this)); },