mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
fix array field with empty options
This commit is contained in:
@@ -62,6 +62,13 @@ Espo.define('views/admin/field-manager/fields/options', 'views/fields/array', fu
|
||||
|
||||
fetch: function () {
|
||||
var data = Dep.prototype.fetch.call(this);
|
||||
|
||||
if (!data[this.name].length) {
|
||||
data[this.name] = false;
|
||||
data.translatedOptions = {};
|
||||
return;
|
||||
}
|
||||
|
||||
data.translatedOptions = {};
|
||||
(data[this.name] || []).forEach(function (value) {
|
||||
valueSanitized = this.getHelper().stripTags(value).replace(/"/g, '"');
|
||||
|
||||
Reference in New Issue
Block a user