Commit session right after we store the state

This commit is contained in:
nathangray 2018-12-20 10:45:11 -07:00
parent 41b95af046
commit 07b24b2a60
5 changed files with 7 additions and 0 deletions

View File

@ -1500,6 +1500,7 @@ class addressbook_ui extends addressbook_bo
{
$old_state = Api\Cache::getSession('addressbook', $what);
}
$GLOBALS['egw']->session->commit_session();
if (!isset($this->grouped_views[(string) $query['grouped_view']]) || strpos($query['grouped_view'],':') === false)
{
// we don't have a grouped view, unset the according col_filters

View File

@ -908,6 +908,7 @@ class filemanager_ui
$rows = array();
return 0;
}
$GLOBALS['egw']->session->commit_session();
$rows = $dir_is_writable = array();
$vfs_options = $this->get_vfs_options($query);
foreach(Vfs::find(!empty($query['col_filter']['dir']) ? $query['col_filter']['dir'] : $query['path'],$vfs_options,true) as $path => $row)

View File

@ -336,6 +336,8 @@ class infolog_ui
$query['filter'] = $query['search'] = $query['cat_id'] = '';
$query['col_filter'] = array('info_id_parent' => $query['col_filter']['info_id_parent']);
}
$GLOBALS['egw']->session->commit_session();
$orginal_colfilter = $query['col_filter'];
if (isset($parent_id)) $query['col_filter']['info_id_parent'] = (string)$parent_id;

View File

@ -118,6 +118,7 @@ class resources_bo
if ($this->debug) _debug_array($query);
$read_onlys = 'res_id,name,short_description,quantity,useable,bookable,buyable,cat_id,location,storage_info';
$GLOBALS['egw']->session->commit_session();
$filter = array();
$join = '';
$extra_cols = array();

View File

@ -552,6 +552,8 @@ class timesheet_ui extends timesheet_bo
//echo "<p align=right>show_sums=".print_r($this->show_sums,true)."</p>\n";
if (!$id_only && !$query_in['csv_export']) Api\Cache::setSession(TIMESHEET_APP, 'index', $query_in);
$GLOBALS['egw']->session->commit_session();
// Refresh actions (undelete needs this)
$query_in['actions'] = $this->get_actions($query_in);