Skip to content

Commit

Permalink
Fix result limit template.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala committed Aug 14, 2023
1 parent bf01976 commit 86fc8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/bootstrap3/templates/search/controls/limit.phtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php $limitList = $this->params->getLimitList(); ?>
<?php if (count($limitList) > 1): ?>
<form class="form-inline search-result-limit" action="<?=$this->currentPath() . $this->results->getUrlQuery()->setLimit(null)?>" method="get">
<?=$this->results->getUrlQuery()->asHiddenFields(['sort' => '/.*/']);?>
<form class="form-inline search-result-limit" action="<?=$this->currentPath()?>" method="get">
<?=$this->results->getUrlQuery()->asHiddenFields(['limit' => '/.*/']);?>
<label for="limit"><?=$this->transEsc('Results per page')?></label>
<select id="limit" name="limit" class="jumpMenu form-control">
<?php foreach ($limitList as $limitVal => $limitData): ?>
Expand Down

0 comments on commit 86fc8e6

Please sign in to comment.