Browse Source

Fix undefined column search bug.

zhixin 10 years ago
parent
commit
b112ad7774
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1076,7 +1076,7 @@
                         j = $.inArray(key, that.header.fields);
 
                     // Fix #142: search use formated data
-                    if (column.searchFormatter) {
+                    if (column && column.searchFormatter) {
                         value = calculateObjectValue(column,
                             that.header.formatters[j], [value, item, i], value);
                     }