Explorar o código

Fix filter bug on empty value

Thomas Rabaix %!s(int64=14) %!d(string=hai) anos
pai
achega
3efab485ba
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Filter/ORM/ChoiceFilter.php

+ 1 - 1
Filter/ORM/ChoiceFilter.php

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