fix: [ParamHandler] fixed correct URL query string parsing for related models

remotes/origin/main
iglocska 2020-06-19 00:35:41 +02:00
parent 91dc59e3a6
commit cdbcb4a5fa
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 3 additions and 2 deletions

View File

@ -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) {