fix not closing popups when using et2_process json.php handler

This commit is contained in:
Ralf Becker 2022-01-10 19:55:05 +02:00
parent 4853f9a622
commit 8e2b649801

View File

@ -119,7 +119,7 @@ abstract class Extra
self::$extra['window-close'] = $alert_msg ? $alert_msg : true; self::$extra['window-close'] = $alert_msg ? $alert_msg : true;
// are we in ajax_process_content -> just return extra data, with close instructions // are we in ajax_process_content -> just return extra data, with close instructions
if (preg_match('/(Etemplate|etemplate_new)(::|\.)ajax_process_content/', $_GET['menuaction'])) if (preg_match('/(Etemplate::ajax_process_content|(::|\.)et2_process)$/', $_GET['menuaction']))
{ {
$response = Json\Response::get(); $response = Json\Response::get();
$response->generic('et2_load', self::get_extra()); $response->generic('et2_load', self::get_extra());