diff --git a/src/extensions/reorder-columns/bootstrap-table-reorder-columns.js b/src/extensions/reorder-columns/bootstrap-table-reorder-columns.js index 637b091d07..9e0aa6b14c 100644 --- a/src/extensions/reorder-columns/bootstrap-table-reorder-columns.js +++ b/src/extensions/reorder-columns/bootstrap-table-reorder-columns.js @@ -141,7 +141,7 @@ } } - for (var i = 0; i < ths.length; i++ ) { + for (var i = 0; i < this.length; i++ ) { columnIndex = that.fieldsColumnsIndex[ths[i]]; if (columnIndex !== -1) { that.columns[columnIndex].fieldIndex = i;