From 97c5f7b1973d6acdc08e9bc124d341046d2a6203 Mon Sep 17 00:00:00 2001 From: mokaddem Date: Wed, 10 Mar 2021 09:40:54 +0100 Subject: [PATCH] chg: [ParamHandler] Allow haversting negated filter from URL - These are separated by a space character which is being converted to `_` --- src/Controller/Component/ParamHandlerComponent.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Controller/Component/ParamHandlerComponent.php b/src/Controller/Component/ParamHandlerComponent.php index 0ef678f..f76a578 100644 --- a/src/Controller/Component/ParamHandlerComponent.php +++ b/src/Controller/Component/ParamHandlerComponent.php @@ -24,6 +24,7 @@ class ParamHandlerComponent extends Component $parsedParams = array(); foreach ($filterList as $k => $filter) { $queryString = str_replace('.', '_', $filter); + $queryString = str_replace(' ', '_', $queryString); if ($this->request->getQuery($queryString) !== null) { $parsedParams[$filter] = $this->request->getQuery($queryString); continue;