From 6d08572ae447c1088c23a7b3da85e538fa882c30 Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Thu, 4 Mar 2010 10:42:25 -0500 Subject: [PATCH] Shout: Use a private output buffer for form (thanks mrubinsk) --- shout/lib/Ajax/Application.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shout/lib/Ajax/Application.php b/shout/lib/Ajax/Application.php index f79574303..1964a80d9 100644 --- a/shout/lib/Ajax/Application.php +++ b/shout/lib/Ajax/Application.php @@ -154,10 +154,15 @@ class Shout_Ajax_Application extends Horde_Ajax_Application_Base $info['required'], $info['readonly'], $info['description'], $info['params']); } + $this->_responseType = 'html'; + + // Catch and return the output from $form->renderActive() + ob_start(); $form->renderActive(null, null, 'javascript:saveAction()'); $output = ob_get_clean(); return $output; + } catch (Exception $e) { //FIXME: Create a way to notify the user of the failure. Horde::logMessage($e->getMessage(), __FILE__, __LINE__, PEAR_LOG_ERR); -- 2.11.0