Explorar el Código

Fix filter bug on empty value

Thomas Rabaix hace 14 años
padre
commit
3efab485ba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Filter/ORM/ChoiceFilter.php

+ 1 - 1
Filter/ORM/ChoiceFilter.php

@@ -33,7 +33,7 @@ class ChoiceFilter extends Filter
             ), $value));
             ), $value));
         } else {
         } else {
 
 
-            if ($value === null || $value == 'all') {
+            if (empty($value) || $value == 'all') {
                 return;
                 return;
             }
             }