Skip to content

Commit

Permalink
Fix potential issue with sort and order
Browse files Browse the repository at this point in the history
In JSON API, you need `sort`, but Bolt uses `order`.
  • Loading branch information
xiaohutai committed Jul 22, 2016
1 parent 0f817de commit b2fe711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Converter/JSONAPIConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function grabParameters($converter, Request $request)

$parameters['page']['size'] = $request->query->get('page[size]', false, true);
$parameters['page']['number'] = $request->query->get('page[number]', false, true);
$parameters['sort'] = $request->query->get('sort', false);
$parameters['order'] = $request->query->get('sort', false);
$parameters['filters'] = $request->query->get('filter', false);
$parameters['contains'] = $request->query->get('contains', false);
$parameters['includes'] = $request->query->get('include', false);
Expand Down

0 comments on commit b2fe711

Please sign in to comment.