From 237c5ffcdf333b8a83bccd34c272c2734163df26 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 15 Mar 2013 14:49:02 +0000 Subject: [PATCH] Fix missing category colors for app specific categories --- admin/inc/class.admin_categories.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/inc/class.admin_categories.inc.php b/admin/inc/class.admin_categories.inc.php index 34886d6442..ba34a5e4b6 100644 --- a/admin/inc/class.admin_categories.inc.php +++ b/admin/inc/class.admin_categories.inc.php @@ -336,7 +336,8 @@ class admin_categories { $filter['appname'] = $query['col_filter']['app']; } - $cats = new categories($filter['owner'],$query['appname']); + $old_cats = $GLOBALS['egw']->categories; + $GLOBALS['egw']->categories = $cats = new categories($filter['owner'],$query['appname']); $globalcat = isset($GLOBALS['egw_info']['user']['apps']['admin']) ? 'all_no_acl' : $globalcat; // ignore acl only for admins $parent = $query['search'] ? false : 0; $rows = $cats->return_sorted_array($query['start'],false,$query['search'],$query['sort'],$query['order'],$globalcat,$parent,true,$filter);