diff --git a/src/bootstrap-table.js b/src/bootstrap-table.js index 99948cf672..77a51abff6 100644 --- a/src/bootstrap-table.js +++ b/src/bootstrap-table.js @@ -1983,6 +1983,10 @@ var field = that.header.fields[i], fieldIndex = $.inArray(field, that.getVisibleFields()); + if (fieldIndex === -1) { + return; + } + if (that.options.detailView && !that.options.cardView) { fieldIndex += 1; }