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); $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) 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 // we don't have a grouped view, unset the according col_filters

View File

@ -908,6 +908,7 @@ class filemanager_ui
$rows = array(); $rows = array();
return 0; return 0;
} }
$GLOBALS['egw']->session->commit_session();
$rows = $dir_is_writable = array(); $rows = $dir_is_writable = array();
$vfs_options = $this->get_vfs_options($query); $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) 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['filter'] = $query['search'] = $query['cat_id'] = '';
$query['col_filter'] = array('info_id_parent' => $query['col_filter']['info_id_parent']); $query['col_filter'] = array('info_id_parent' => $query['col_filter']['info_id_parent']);
} }
$GLOBALS['egw']->session->commit_session();
$orginal_colfilter = $query['col_filter']; $orginal_colfilter = $query['col_filter'];
if (isset($parent_id)) $query['col_filter']['info_id_parent'] = (string)$parent_id; 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); if ($this->debug) _debug_array($query);
$read_onlys = 'res_id,name,short_description,quantity,useable,bookable,buyable,cat_id,location,storage_info'; $read_onlys = 'res_id,name,short_description,quantity,useable,bookable,buyable,cat_id,location,storage_info';
$GLOBALS['egw']->session->commit_session();
$filter = array(); $filter = array();
$join = ''; $join = '';
$extra_cols = array(); $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"; //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); 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) // Refresh actions (undelete needs this)
$query_in['actions'] = $this->get_actions($query_in); $query_in['actions'] = $this->get_actions($query_in);