mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-18 11:52:11 +01:00
Fix: When a previous search column details is defined for column 0, it would fail incorrectly. Now fixed
This commit is contained in:
parent
acec127c9a
commit
91c63b8ad5
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -81,7 +81,7 @@
|
||||
oSettings.aoColumns.push( oCol );
|
||||
|
||||
/* Add a column specific filter */
|
||||
if ( !oSettings.aoPreSearchCols[ iCol ] )
|
||||
if ( oSettings.aoPreSearchCols[ iCol ] !== undefined )
|
||||
{
|
||||
oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ function _fnAddColumn( oSettings, nTh )
|
||||
oSettings.aoColumns.push( oCol );
|
||||
|
||||
/* Add a column specific filter */
|
||||
if ( !oSettings.aoPreSearchCols[ iCol ] )
|
||||
if ( oSettings.aoPreSearchCols[ iCol ] !== undefined )
|
||||
{
|
||||
oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user