* 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:55:19 +00:00
parent 29e9b85fcf
commit 8941232989

View File

@ -673,6 +673,12 @@ class infolog_ui
$nm['action'] = $action = '';
$nm['action_id'] = $action_id = 0;
$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);
@ -1201,6 +1207,8 @@ class infolog_ui
// Fall through
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);
}