浏览代码

Fix #142: Search use formatted data.

zhixin 11 年之前
父节点
当前提交
c808802e8f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

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