mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
ActionController: Don't override reload rules in redirectXhr()
`postDispatchXhr()` also only overrides them if enabled.
This commit is contained in:
parent
67285ce262
commit
0b9eecbabc
@ -404,10 +404,17 @@ class ActionController extends Zend_Controller_Action
|
|||||||
|
|
||||||
protected function redirectXhr($url)
|
protected function redirectXhr($url)
|
||||||
{
|
{
|
||||||
$this->getResponse()
|
$response = $this->getResponse();
|
||||||
->setReloadCss($this->reloadCss)
|
|
||||||
->setRerenderLayout($this->rerenderLayout)
|
if ($this->reloadCss) {
|
||||||
->redirectAndExit($url);
|
$response->setReloadCss(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->rerenderLayout) {
|
||||||
|
$response->setRerenderLayout(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
$response->redirectAndExit($url);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function redirectHttp($url)
|
protected function redirectHttp($url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user