diff --git a/api/src/Etemplate.php b/api/src/Etemplate.php index dec1dee10f..bdc60e06e9 100644 --- a/api/src/Etemplate.php +++ b/api/src/Etemplate.php @@ -257,9 +257,10 @@ class Etemplate extends Etemplate\Widget\Template $load_array['response'] = Json\Response::get()->returnResult(); } // '; + echo $form; if ($output_mode == 2) { @@ -267,6 +268,7 @@ class Etemplate extends Etemplate\Widget\Template echo $GLOBALS['egw']->framework->footer(); } ob_flush(); + if ($output_mode == 1) return $form; } self::$request = null; }