Don't try to change columns that can't be changed, fixes Uncaught TypeError: Cannot set property 'visible' of undefined

This commit is contained in:
nathangray 2016-06-01 09:29:25 -06:00
parent 1c24585eab
commit 9f32a7e1a9

View File

@ -1522,7 +1522,9 @@ var et2_nextmatch = (function(){ "use strict"; return et2_DOMWidget.extend([et2_
var widget = this.columns[i].widget; var widget = this.columns[i].widget;
var colName = this._getColumnName(widget); var colName = this._getColumnName(widget);
if(column_list.indexOf(colName) !== -1) if(column_list.indexOf(colName) !== -1 &&
typeof visibility[columnMgr.columns[i].id] !== 'undefined'
)
{ {
visibility[columnMgr.columns[i].id].visible = true; visibility[columnMgr.columns[i].id].visible = true;
} }