No output support for command forms. Doesn't fit all forms, more to come

This commit is contained in:
Thomas Gelf 2014-03-08 12:08:25 +01:00
parent 71aea4dfc7
commit 2b19ba51a6

View File

@ -116,15 +116,13 @@ class Monitoring_CommandController extends ActionController
if ($this->form->isSubmittedAndValid()) {
$this->_helper->viewRenderer->setNoRender(true);
$this->_helper->layout()->disableLayout();
$this->ignoreXhrBody();
if ($this->_request->getHeader('referer') && ! $this->getRequest()->isXmlHttpRequest()) {
$this->redirect($this->_request->getHeader('referer'));
}
return;
} else {
$this->view->form = $this->form;
}
$this->view->form = $this->form;
}
parent::postDispatch();
}