Explorar o código

Merge pull request #62 from r1pp3rj4ck/bugfix-filter-0

[Filter] fixed choice filter when the selected choice is '0'
Thomas %!s(int64=13) %!d(string=hai) anos
pai
achega
24fc91770c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Filter/ChoiceFilter.php

+ 1 - 1
Filter/ChoiceFilter.php

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