Form: Do not create a new instance of Url when returning the redirect url

We're shifting parameters and by creating a new instance we'll lose
such changes.

refs #8758
This commit is contained in:
Johannes Meyer 2015-07-21 15:13:56 +02:00
parent 570dada0d8
commit 0a9a066749
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ class Form extends Zend_Form
public function getRedirectUrl()
{
if ($this->redirectUrl === null) {
$url = Url::fromRequest(array(), $this->getRequest());
$url = $this->getRequest()->getUrl();
// Be sure to remove all form dependent params because we do not want to submit it again
$this->redirectUrl = $url->without(array_keys($this->getElements()));
}