ソースを参照

Fix #980

Fix #980 Detail view, when searching, returns wrong row

```initBody``` was using ```that.options.data``` (the full table data) instead of ```data``` (the current filtered data) to form the Detail view
Tanner McColeman 10 年 前
コミット
0783b3e878
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1452,7 +1452,7 @@
             var $this = $(this),
             var $this = $(this),
                 $tr = $this.parent().parent(),
                 $tr = $this.parent().parent(),
                 index = $tr.data('index'),
                 index = $tr.data('index'),
-                row = that.options.data[index];
+                row = data[index]; // Fix #980 Detail view, when searching, returns wrong row
 
 
             // remove and update
             // remove and update
             if ($tr.next().is('tr.detail-view')) {
             if ($tr.next().is('tr.detail-view')) {