Browse Source

fix bug with zero value

Alexey Kozenko 10 years ago
parent
commit
fa1f8841ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 1 - 1
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -91,7 +91,7 @@
             iOpt = 0;
 
         for (; iOpt < options.length; iOpt++) {
-            if (options[iOpt].value == value) {
+            if (options[iOpt].value === value.toString()) {
                 //The value is nor valid to add
                 return false;
             }