From 96dd9d46c26731b3a1a7a16c93b66c5b660a2f2f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 22 Feb 2011 20:14:35 +0000 Subject: [PATCH] Include main category even if no sub-cats are selected --- etemplate/inc/class.bo_merge.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 9ba22f2ae5..e747cf89ff 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -238,6 +238,8 @@ abstract class bo_merge $path = explode(' / ', $path); unset($path[0]); // Drop main $cats[$GLOBALS['egw']->categories->id2name($cat_id,'main')][] = implode(' / ', $path); + } elseif($cat_id) { + $cats[$cat_id] = array(); } } foreach($cats as $main => $cat) {