set currentapp to app whos category we display to fix refresh issues for user (not admin) opening cats in app-tab

This commit is contained in:
Ralf Becker 2016-06-13 16:07:04 +02:00
parent 6c47da8f64
commit e54a56efd6

View File

@ -37,4 +37,16 @@ class preferences_categories_ui extends admin_categories {
$rows['edit_link'] = 'preferences.preferences_categories_ui.edit'; $rows['edit_link'] = 'preferences.preferences_categories_ui.edit';
return $count; return $count;
} }
/**
* Overriding index to set currentapp to be app whos categories we display
*
* @param array $content
*/
public function index(array $content=null)
{
$GLOBALS['egw_info']['flags']['currentapp'] = $_GET['cats_app'];
parent::index($content);
}
} }