Skip to content

Commit

Permalink
fix filters from ci-hub
Browse files Browse the repository at this point in the history
  • Loading branch information
labudzinski committed Dec 22, 2023
1 parent 2c76f73 commit 530ca53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controller/BaseEndpointController.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ protected function applyQueriesAndAggregations(Search $search, ConfigReader $con
* @TODO to remove on 2.2.x
*/
if ($this->request->query->has('filter')) {
$filter = json_decode($this->request->get('filter'), true, 512, \JSON_THROW_ON_ERROR);
$filter = $this->request->get('filter');
if(is_string($filter)) {
$filter = json_decode($filter, true, 512, \JSON_THROW_ON_ERROR);
}
} else {
$filter = [];
}
Expand Down

0 comments on commit 530ca53

Please sign in to comment.