export fix

This commit is contained in:
yuri
2016-12-15 10:53:55 +02:00
parent 052c489bf7
commit fa3b4f3ac2
+10
View File
@@ -45,6 +45,16 @@ Espo.define('views/export/record/record', 'views/record/base', function (Dep) {
return !~forbiddenFieldList.indexOf(item);
}, this);
fieldList = fieldList.filter(function (item) {
var defs = this.getMetadata().get(['entityDefs', this.scope, 'fields', item]) || {};
if (defs.disabled) return;
if (defs.exportDisabled) return;
if (defs.type === 'map') return;
return true;
}, this);
this.getLanguage().sortFieldList(this.scope, fieldList);
fieldList.unshift('id');