Filter: Correctly use parsed data when set. Fixes #502

This commit is contained in:
Rob Garrison 2016-03-01 19:40:13 -06:00
parent 83402f040a
commit 9dd2d65281
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -1102,7 +1102,7 @@
// 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 ];
result = data.rawArray[ columnIndex ] || ''; result = data.parsed[ columnIndex ] ? data.cache : data.rawArray[ columnIndex ] || '';
data.exact = c.sortLocaleCompare ? ts.replaceAccents( result ) : result; // issue #405 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;