Fix set column not working because of using wrong constant variable

This commit is contained in:
Hadi Nategh 2020-08-20 16:47:38 +02:00
parent 71605c0c14
commit 6c9e83b38a
2 changed files with 2 additions and 2 deletions

View File

@ -1423,7 +1423,7 @@ var et2_nextmatch = /** @class */ (function (_super) {
// Initialize to false // Initialize to false
for (var i = 0; i < columnMgr.columns.length; i++) { for (var i = 0; i < columnMgr.columns.length; i++) {
var col = columnMgr.columns[i]; var col = columnMgr.columns[i];
if (col.caption && col.visibility != et2_dataview_view_grid_1.et2_dataview_grid.ET2_COL_VISIBILITY_ALWAYS_NOSELECT) { if (col.caption && col.visibility != et2_dataview_model_columns_1.et2_dataview_column.ET2_COL_VISIBILITY_ALWAYS_NOSELECT) {
visibility[col.id] = { visible: false }; visibility[col.id] = { visible: false };
} }
} }

View File

@ -1961,7 +1961,7 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
for (var i = 0; i < columnMgr.columns.length; i++) for (var i = 0; i < columnMgr.columns.length; i++)
{ {
const col = columnMgr.columns[i]; const col = columnMgr.columns[i];
if(col.caption && col.visibility != et2_dataview_grid.ET2_COL_VISIBILITY_ALWAYS_NOSELECT ) if (col.caption && col.visibility != et2_dataview_column.ET2_COL_VISIBILITY_ALWAYS_NOSELECT )
{ {
visibility[col.id] = {visible: false}; visibility[col.id] = {visible: false};
} }