From 3dd114179f141d17e211557664d4a35c3b9ff086 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 15 Mar 2017 16:54:58 +0100 Subject: [PATCH] Return form including etemplate-data if the output_mode is set to 1 --- api/src/Etemplate.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/Etemplate.php b/api/src/Etemplate.php index ed3343fede..cd2d8be730 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; }