mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
No output support for command forms. Doesn't fit all forms, more to come
This commit is contained in:
parent
71aea4dfc7
commit
2b19ba51a6
@ -116,15 +116,13 @@ class Monitoring_CommandController extends ActionController
|
|||||||
if ($this->form->isSubmittedAndValid()) {
|
if ($this->form->isSubmittedAndValid()) {
|
||||||
$this->_helper->viewRenderer->setNoRender(true);
|
$this->_helper->viewRenderer->setNoRender(true);
|
||||||
$this->_helper->layout()->disableLayout();
|
$this->_helper->layout()->disableLayout();
|
||||||
|
$this->ignoreXhrBody();
|
||||||
if ($this->_request->getHeader('referer') && ! $this->getRequest()->isXmlHttpRequest()) {
|
if ($this->_request->getHeader('referer') && ! $this->getRequest()->isXmlHttpRequest()) {
|
||||||
$this->redirect($this->_request->getHeader('referer'));
|
$this->redirect($this->_request->getHeader('referer'));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
return;
|
$this->view->form = $this->form;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->view->form = $this->form;
|
|
||||||
}
|
}
|
||||||
parent::postDispatch();
|
parent::postDispatch();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user