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:
parent
570dada0d8
commit
0a9a066749
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue