Filter: functions now get exact data, ignoring parsed flag. Fixes #1107

This commit is contained in:
Rob Garrison 2016-01-10 22:03:45 -06:00
parent 7aa5ba3617
commit 4e9905f26c

View File

@ -1080,13 +1080,8 @@
// ignore if filter is empty or disabled // ignore if filter is empty or disabled
if ( data.filter ) { if ( data.filter ) {
data.cache = data.cacheArray[ columnIndex ]; data.cache = data.cacheArray[ columnIndex ];
// check if column data should be from the cell or from parsed data result = data.rawArray[ columnIndex ] || '';
if ( wo.filter_useParsedData || data.parsed[ columnIndex ] ) { data.exact = c.sortLocaleCompare ? ts.replaceAccents( result ) : result; // issue #405
data.exact = data.cache;
} else {
result = data.rawArray[ columnIndex ] || '';
data.exact = c.sortLocaleCompare ? ts.replaceAccents( result ) : result; // issue #405
}
data.iExact = !tsfRegex.type.test( typeof data.exact ) && wo.filter_ignoreCase ? data.iExact = !tsfRegex.type.test( typeof data.exact ) && wo.filter_ignoreCase ?
data.exact.toLowerCase() : data.exact; data.exact.toLowerCase() : data.exact;