Skip to content
Snippets Groups Projects
Commit 2b02cde4 authored by Dezső Biczó's avatar Dezső Biczó Committed by Björn Brala
Browse files

Issue #3349731 by ignaciolflores, angheloko, mxr576, Rajeshreeputra, bbrala,...

Issue #3349731 by ignaciolflores, angheloko, mxr576, Rajeshreeputra, bbrala, pfrenssen, JimSmith: InvalidArgumentException: Expected a scalar value as a 2nd argument to "Symfony\Component\HttpFoundation\InputBag::get()", "array" given
parent c7e51d15
No related branches found
No related tags found
No related merge requests found
......@@ -74,12 +74,12 @@ class EntityResource extends JsonApiEntityResourse {
$filters = array_merge(
$default_filter,
$request->query->get('filter', [])
$request->query->all('filter')
);
$sort = [];
if ($request->query->has('sort')) {
$sort = Sort::createFromQueryParameter($request->query->get('sort'))->fields();
$sort = Sort::createFromQueryParameter($request->query->all()['sort'])->fields();
}
$sorting = array_merge($default_sorting, $sort);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment