From cd5c19e1c0d8349b8e3ead8461b28fc6169caecb Mon Sep 17 00:00:00 2001 From: zoryamba Date: Sun, 28 Jul 2019 14:31:44 +0300 Subject: [PATCH] Filters panel is collapsed on selected filter value "0" --- publishes/views/index/filters.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publishes/views/index/filters.blade.php b/publishes/views/index/filters.blade.php index 43d9562..5d8c797 100755 --- a/publishes/views/index/filters.blade.php +++ b/publishes/views/index/filters.blade.php @@ -4,7 +4,7 @@ $resetUrl = method_exists($module, 'defaultRoute') ? $module->defaultRoute() : route('scaffold.index', ['module' => $module]); $filled = $elements ? $elements->reduce(function ($filled, $element) { - if ($element->getInput()->getValue()) { + if ((string) $element->getInput()->getValue() !== '') { ++$filled; }