Make sure column exists before trying to access its widget

This commit is contained in:
Nathan Gray 2012-03-22 23:17:00 +00:00
parent a2aa644124
commit 8c161056b5

View File

@ -640,7 +640,7 @@ var et2_nextmatch = et2_DOMWidget.extend(et2_IResizeable, {
visibility[value[i]].visible = true;
}
// Custom fields are listed seperately in column list, but are only 1 column
if(self.columns[column].widget.instanceOf(et2_nextmatch_customfields)) {
if(self.columns[column] && self.columns[column].widget.instanceOf(et2_nextmatch_customfields)) {
var cf = self.columns[column].widget.options.customfields;
var visible = self.columns[column].widget.options.fields;