Make sure default filter is always properly set

This commit is contained in:
Nathan Gray 2011-06-21 21:30:26 +00:00
parent 275a1d3f27
commit d9b12fd8ab

View File

@ -379,8 +379,8 @@ class admin_categories
else
{
$content['nm']['start']=0;
$content['nm']['filter'] = $GLOBALS['egw_info']['flags']['currentapp'] == 'admin'?categories::GLOBAL_ACCOUNT:$GLOBALS['egw_info']['user']['account_id'];
}
$content['nm']['filter'] = $GLOBALS['egw_info']['flags']['currentapp'] == 'admin'?categories::GLOBAL_ACCOUNT:$GLOBALS['egw_info']['user']['account_id'];
$content['nm']['appname'] = $appname = $_GET['appname'] ? $_GET['appname'] : $appname;
$content['nm']['actions'] = $this->get_actions($appname);