From e54a56efd624ce16ee33e09d1d11435511bb96d6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 13 Jun 2016 16:07:04 +0200 Subject: [PATCH] set currentapp to app whos category we display to fix refresh issues for user (not admin) opening cats in app-tab --- .../inc/class.preferences_categories_ui.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/preferences/inc/class.preferences_categories_ui.inc.php b/preferences/inc/class.preferences_categories_ui.inc.php index 284dee857f..b8dc23a16d 100644 --- a/preferences/inc/class.preferences_categories_ui.inc.php +++ b/preferences/inc/class.preferences_categories_ui.inc.php @@ -37,4 +37,16 @@ class preferences_categories_ui extends admin_categories { $rows['edit_link'] = 'preferences.preferences_categories_ui.edit'; 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); + } }