export populate with list layout

This commit is contained in:
yuri
2017-04-28 15:10:40 +03:00
parent 9e46edce79
commit c88e01fe75
+8
View File
@@ -346,6 +346,14 @@ Espo.define('views/record/list', 'view', function (Dep) {
};
if (fieldList) {
o.fieldList = fieldList;
} else {
var layoutFieldList = [];
(this.listLayout || []).forEach(function (item) {
if (item.name) {
layoutFieldList.push(item.name);
}
}, this);
o.fieldList = layoutFieldList;
}
this.createView('dialogExport', 'views/export/modals/export', o, function (view) {