* InfoLog: remember filter to restore it after viewing subs or an other action-view

This commit is contained in:
Ralf Becker 2012-04-04 11:57:06 +00:00
parent eef6f439f3
commit 9ff981b697

View File

@ -678,6 +678,12 @@ class infolog_ui
$nm['action'] = $action = ''; $nm['action'] = $action = '';
$nm['action_id'] = $action_id = 0; $nm['action_id'] = $action_id = 0;
$nm['action_title'] = $action_title = ''; $nm['action_title'] = $action_title = '';
// check if action-view reset filter and restore it
if (($filter = egw_cache::getSession('infolog', 'filter_reset_from')))
{
$nm['filter'] = $filter;
egw_cache::unsetSession('infolog', 'filter_reset_from');
}
} }
$values = array('nm' => $nm); $values = array('nm' => $nm);
@ -1212,6 +1218,8 @@ class infolog_ui
// Fall through // Fall through
case 'view': case 'view':
// remember filter to restore it, if infolog icon get's clicked next time
if ($query['filter']) egw_cache::setSession('infolog', 'filter_reset_from', $query['filter']);
return $this->index(array(),'sp',$checked,0); return $this->index(array(),'sp',$checked,0);
case 'ical': case 'ical':
$boical = new infolog_ical(); $boical = new infolog_ical();