diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index e07860c515..d82510c154 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -233,6 +233,18 @@ class etemplate_new extends etemplate_widget_template '; } + ob_flush(); + + // Send any accumulated json responses - after flush to avoid sending the buffer as a response + if(egw_json_response::isJSONResponse()) + { + $response = egw_json_response::get(); + echo ''; + } common::egw_footer(); } }