Browse Source

Fix error when with numbers in accent neutralise (#3943)

Luis Valladares 7 years ago
parent
commit
322a673e1f

+ 1 - 1
src/extensions/accent-neutralise/bootstrap-table-accent-neutralise.js

@@ -158,7 +158,7 @@
                     }
 
                     var index = $.inArray(key, that.header.fields);
-                    if (index !== -1 && that.header.searchables[index] && (typeof value === 'string' || typeof value === 'number')) {
+                    if (index !== -1 && that.header.searchables[index] && typeof value === 'string') {
                         if (that.options.searchAccentNeutralise) {
                             value = removeDiacritics(value);
                             s = removeDiacritics(s);