Skip to content
Snippets Groups Projects
Commit 3fdce7db authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Make it possible to add a hidden filter with value ’0’. (#942)

parent 35976a1d
No related merge requests found
...@@ -1483,7 +1483,7 @@ class Params ...@@ -1483,7 +1483,7 @@ class Params
if (!$this->hasHiddenFilter($newFilter)) { if (!$this->hasHiddenFilter($newFilter)) {
// Extract field and value from filter string: // Extract field and value from filter string:
list($field, $value) = $this->parseFilter($newFilter); list($field, $value) = $this->parseFilter($newFilter);
if (!empty($field) && !empty($value)) { if (!empty($field) && '' !== $value) {
$this->hiddenFilters[$field][] = $value; $this->hiddenFilters[$field][] = $value;
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment