From fb4fd220a487159ff4859193dc76d18e7b0e4fdb Mon Sep 17 00:00:00 2001 From: dante Date: Mon, 7 Aug 2017 09:48:51 -0400 Subject: [PATCH] bugfix/HOR-3488 --- workflow/engine/templates/pmTables/export.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/workflow/engine/templates/pmTables/export.js b/workflow/engine/templates/pmTables/export.js index 8d8c064db..bbd9f5b5c 100644 --- a/workflow/engine/templates/pmTables/export.js +++ b/workflow/engine/templates/pmTables/export.js @@ -72,7 +72,11 @@ Export.configure = function() e.stopEvent(); var index = Export.targetGrid.getView().findRowIndex(t); var record = Export.targetGrid.store.getAt(index); - + + if (record.data['_SCHEMA'] !== true) { + return false; + } + if(record.data['PRO_UID']) { PMExt.info(_('ID_INFO'), _('ID_REPORT_TABLES_DATA_EXPORT_NOT_ALLOWED')); return false; @@ -210,6 +214,10 @@ Ext.ux.grid.CheckColumn.prototype ={ var index = this.grid.getView().findRowIndex(t); var record = this.grid.store.getAt(index); record.set(this.dataIndex, !record.data[this.dataIndex]); + + //if schema check is selected/unselected, + //the data column is always initialized to unchecked + record.set('_DATA', false); } },