From 2b19ba51a66ecb399f46ddb90655fb88a222da43 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 8 Mar 2014 12:08:25 +0100 Subject: [PATCH] No output support for command forms. Doesn't fit all forms, more to come --- .../application/controllers/CommandController.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/monitoring/application/controllers/CommandController.php b/modules/monitoring/application/controllers/CommandController.php index cc1621929..b2ab59206 100644 --- a/modules/monitoring/application/controllers/CommandController.php +++ b/modules/monitoring/application/controllers/CommandController.php @@ -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(); }