Fix device filtering false values (#14103)

now disabled=0 and ignore=0 filters should work
This commit is contained in:
Tony Murray
2022-07-11 14:56:52 -05:00
committed by GitHub
parent afb5fb7eea
commit 4536ccbcab

View File

@@ -148,7 +148,7 @@ abstract class PaginatedAjaxController extends Controller
foreach ($fields as $target => $field) {
if (is_callable($field)) {
$field($query, $request->get($target));
} elseif ($value = $request->get($field)) {
} elseif (($value = $request->get($field)) !== null) {
$value = $this->adjustFilterValue($field, $value);
if (is_string($target)) {
$query->where($target, $value);