Reset page when setting a new limit

This commit is contained in:
Eric Lippmann 2015-11-17 16:45:44 +01:00
parent 9dfaa93617
commit 52c3e5d8dd
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,9 @@ class LimiterControlForm extends Form
*/
public function getRedirectUrl()
{
return $this->getRequest()->getUrl()->setParam('limit', $this->getElement('limit')->getValue());
return $this->getRequest()->getUrl()
->setParam('limit', $this->getElement('limit')->getValue())
->without('page');
}
/**