Skip to content

Commit

Permalink
Merge pull request #1983 from omeka/sort-selector-event
Browse files Browse the repository at this point in the history
Trigger event missed in latest core release
  • Loading branch information
jimsafley authored Jan 9, 2023
2 parents 56dd1ea + a28e1a7 commit 4da3e4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/src/View/Helper/Browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ public function renderSortSelector($resourceTypeOrSortConfig) : string
// Do not render the sort selector if there is no configuration.
return '';
}
return $view->partial('common/sort-selector', [
$args = [
'sortConfig' => $sortConfig,
'sortByQuery' => $view->params()->fromQuery('sort_by'),
'sortOrderQuery' => $view->params()->fromQuery('sort_order'),
]);
];
$args = $view->trigger('view.sort-selector', $args, true);
return $view->partial('common/sort-selector', (array) $args);
}

/**
Expand Down

0 comments on commit 4da3e4d

Please sign in to comment.