From cdbcb4a5fa0c7b0085c03fbc932e94c660391777 Mon Sep 17 00:00:00 2001 From: iglocska Date: Fri, 19 Jun 2020 00:35:41 +0200 Subject: [PATCH] fix: [ParamHandler] fixed correct URL query string parsing for related models --- app/src/Controller/Component/ParamHandlerComponent.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/Controller/Component/ParamHandlerComponent.php b/app/src/Controller/Component/ParamHandlerComponent.php index 94d6d7c..77d1177 100644 --- a/app/src/Controller/Component/ParamHandlerComponent.php +++ b/app/src/Controller/Component/ParamHandlerComponent.php @@ -23,8 +23,9 @@ class ParamHandlerComponent extends Component { $parsedParams = array(); foreach ($filterList as $k => $filter) { - if (isset($this->request->getAttribute('params')['pass'][$k])) { - $parsedParams[$filter] = $this->request->getAttribute('params')['pass'][$k]; + $queryString = str_replace('.', '_', $filter); + if ($this->request->getQuery($queryString) !== null) { + $parsedParams[$filter] = $this->request->getQuery($queryString); continue; } if (($this->request->getQuery($filter)) !== null) {