The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit c5580dc6 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed limit value in "more" link for combined search.

parent caad6202
No related merge requests found
...@@ -6,10 +6,7 @@ ...@@ -6,10 +6,7 @@
$recordTotal = $results->getResultTotal(); $recordTotal = $results->getResultTotal();
// More link should use default limit, not custom limit: // More link should use default limit, not custom limit:
$limit = $params->getLimit(); $moreUrl = $this->url($params->getOptions()->getSearchAction()) . $results->getUrlQuery()->setPage(1)->setLimit($params->getOptions()->getDefaultLimit());
$params->setLimit($params->getOptions()->getDefaultLimit());
$moreUrl = $this->url($params->getOptions()->getSearchAction()) . $results->getUrlQuery()->setPage(1);
$params->setLimit($limit);
?> ?>
<? if (isset($currentSearch['more_link']) && $currentSearch['more_link']): ?> <? if (isset($currentSearch['more_link']) && $currentSearch['more_link']): ?>
<div class="pull-right flip"> <div class="pull-right flip">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment