ActionController: Don't override reload rules in `redirectXhr()`

`postDispatchXhr()` also only overrides them if enabled.
This commit is contained in:
Johannes Meyer 2022-05-11 14:18:09 +02:00
parent 67285ce262
commit 0b9eecbabc
1 changed files with 11 additions and 4 deletions

View File

@ -404,10 +404,17 @@ class ActionController extends Zend_Controller_Action
protected function redirectXhr($url)
{
$this->getResponse()
->setReloadCss($this->reloadCss)
->setRerenderLayout($this->rerenderLayout)
->redirectAndExit($url);
$response = $this->getResponse();
if ($this->reloadCss) {
$response->setReloadCss(true);
}
if ($this->rerenderLayout) {
$response->setRerenderLayout(true);
}
$response->redirectAndExit($url);
}
protected function redirectHttp($url)