Skip to content

Commit

Permalink
#25: unset sortorder is publication date descending
Browse files Browse the repository at this point in the history
  • Loading branch information
ctgraham committed Mar 10, 2021
1 parent fc7ffa2 commit 33233bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BrowseBySectionPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ public function initDataSectionFormFields($hookName, $args) {
$sectionForm->setData('browseByPerPage', $section->getData('browseByPerPage'));
$sectionForm->setData('browseByDescription', $section->getData('browseByDescription'));
$orderTypes = array(
'datePubDesc' => 'catalog.sortBy.datePublishedDesc',
'datePubAsc' => 'catalog.sortBy.datePublishedAsc',
'titleAsc' => 'catalog.sortBy.titleAsc',
'titleDesc' => 'catalog.sortBy.titleDesc',
'datePubDesc' => 'catalog.sortBy.datePublishedDesc',
'datePubAsc' => 'catalog.sortBy.datePublishedAsc'
);
$sectionForm->setData('orderTypes', $orderTypes);
$sectionForm->setData('browseByOrder', $section->getData('browseByOrder'));
Expand Down

0 comments on commit 33233bf

Please sign in to comment.