From 9f32a7e1a9568089185383d1f93a035e3889eaf8 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 1 Jun 2016 09:29:25 -0600 Subject: [PATCH] Don't try to change columns that can't be changed, fixes Uncaught TypeError: Cannot set property 'visible' of undefined --- api/js/etemplate/et2_extension_nextmatch.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index dfbb8a7880..e344040218 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -1522,7 +1522,9 @@ var et2_nextmatch = (function(){ "use strict"; return et2_DOMWidget.extend([et2_ var widget = this.columns[i].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; }