Skip to content

Commit 3fbab9a

Browse files
committedSep 8, 2021
b2b0ae8f214878fe08bc3f507624584cb6d3b242 fix: Fix issue with internal function not retrieving filter data where appropriate
Jira Issue DD-2209 e0ab0b8d5ced1203d28d8be126779d17c39af63f Merge branch 'master' of github.com:DataTables/DataTablesSrc Sync to source repo @e0ab0b8d5ced1203d28d8be126779d17c39af63f
1 parent 2d7d3e1 commit 3fbab9a

File tree

3 files changed

+112
-108
lines changed

3 files changed

+112
-108
lines changed
 

‎datatables.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
],
1010
"src-repo": "http://github.com/DataTables/DataTablesSrc",
1111
"last-tag": "1.11.2",
12-
"last-sync": "b231df3c8fdf73ee04bcd2a6b75bb94e94322a74"
12+
"last-sync": "e0ab0b8d5ced1203d28d8be126779d17c39af63f"
1313
}

‎js/jquery.dataTables.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -2796,9 +2796,18 @@
27962796
return cellData.call( rowData );
27972797
}
27982798

2799-
if ( cellData === null && type == 'display' ) {
2799+
if ( cellData === null && type === 'display' ) {
28002800
return '';
28012801
}
2802+
2803+
if ( type === 'filter' ) {
2804+
var fomatters = DataTable.ext.type.search;
2805+
2806+
if ( fomatters[ col.sType ] ) {
2807+
cellData = fomatters[ col.sType ]( cellData );
2808+
}
2809+
}
2810+
28022811
return cellData;
28032812
}
28042813

@@ -4553,7 +4562,6 @@
45534562
var columns = settings.aoColumns;
45544563
var column;
45554564
var i, j, ien, jen, filterData, cellData, row;
4556-
var fomatters = DataTable.ext.type.search;
45574565
var wasInvalidated = false;
45584566

45594567
for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
@@ -4568,10 +4576,6 @@
45684576
if ( column.bSearchable ) {
45694577
cellData = _fnGetCellData( settings, i, j, 'filter' );
45704578

4571-
if ( fomatters[ column.sType ] ) {
4572-
cellData = fomatters[ column.sType ]( cellData );
4573-
}
4574-
45754579
// Search in DataTables 1.10 is string based. In 1.11 this
45764580
// should be altered to also allow strict type checking.
45774581
if ( cellData === null ) {

‎js/jquery.dataTables.min.js

+101-101
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.