mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-19 20:00:54 +01:00
* InfoLog: remember filter to restore it after viewing subs or an other action-view
This commit is contained in:
parent
29e9b85fcf
commit
8941232989
@ -673,6 +673,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);
|
||||||
|
|
||||||
@ -1201,6 +1207,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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user