From 8fbcb8788ec9090ea44326134d31ed581de2367d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 29 Mar 2021 15:38:55 +0200 Subject: [PATCH] Admin: release session in get_(users|groups) to allow parallel requests to run for --- admin/inc/class.admin_ui.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin/inc/class.admin_ui.inc.php b/admin/inc/class.admin_ui.inc.php index 2dff0fff1a..7e051a04de 100644 --- a/admin/inc/class.admin_ui.inc.php +++ b/admin/inc/class.admin_ui.inc.php @@ -74,7 +74,6 @@ class admin_ui 'placeholder_actions' => array('add') ); - //$content['msg'] = 'Hi Ralf ;-)'; $sel_options['tree'] = $this->tree_data(); $sel_options['filter'] = array('' => lang('All groups')); foreach(self::$accounts->search(array( @@ -326,6 +325,9 @@ class admin_ui */ public static function get_users(array $query, array &$rows=null) { + // release session to allow parallel requests to run + $GLOBALS['egw']->session->commit_session(); + $params = array( 'type' => (int)$query['filter'] ? (int)$query['filter'] : 'accounts', 'start' => $query['start'], @@ -432,6 +434,9 @@ class admin_ui */ public static function get_groups(&$query, &$rows) { + // release session to allow parallel requests to run + $GLOBALS['egw']->session->commit_session(); + $groups = $GLOBALS['egw']->accounts->search(array( 'type' => 'groups', 'query' => $query['search'],