From c88e01fe7517bdec986745caaaa7073fa0263c2a Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 28 Apr 2017 15:10:40 +0300 Subject: [PATCH] export populate with list layout --- client/src/views/record/list.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/views/record/list.js b/client/src/views/record/list.js index d206c0cedb..d065105157 100644 --- a/client/src/views/record/list.js +++ b/client/src/views/record/list.js @@ -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) {