Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions application/src/Controller/Site/ItemSetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ public function browseAction()

$query = $this->params()->fromQuery();
$query['site_id'] = $site->id();

//this is the same approach as admin, but it will change the sort order and other defaults
//$this->browse()->setDefaults('item_sets');

//this will only set the page
$query['page'] ??= 1;

$response = $this->api()->search('item_sets', $query);
$this->paginator($response->getTotalResults());
$itemSets = $response->getContent();
Expand Down