Browse Source

Fix #142: Search use formatted data.

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

+ 1 - 1
src/bootstrap-table.js

@@ -584,7 +584,7 @@
 
                     // Fix #142: search use formated data
                     value = calculateFunctionValue(that.header,
-                        that.header.formatters[getFieldIndex(that.options.columns, key)],
+                        that.header.formatters[$.inArray(key, that.header.fields)],
                         [value, item, i], value);
 
                     if ($.inArray(key, that.header.fields) !== -1 &&