From 43459e53a5e6c1befd87c0cb329c828c2bc2cc16 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 4 Sep 2015 18:58:48 +0000 Subject: [PATCH] Fix sub-categories not included when exporting search results --- infolog/inc/class.infolog_so.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_so.inc.php b/infolog/inc/class.infolog_so.inc.php index 0b014ce1d4..a6fabdb242 100644 --- a/infolog/inc/class.infolog_so.inc.php +++ b/infolog/inc/class.infolog_so.inc.php @@ -798,8 +798,8 @@ class infolog_so if ((int)$query['cat_id']) { - //$filtermethod .= ' AND info_cat='.intval($query['cat_id']).' '; - $cats = $GLOBALS['egw']->categories->return_all_children((int)$query['cat_id']); + $categories = new categories('','infolog'); + $cats = $categories->return_all_children((int)$query['cat_id']); $filtermethod .= ' AND info_cat'.(count($cats)>1? ' IN ('.implode(',',$cats).') ' : '='.(int)$query['cat_id']); } $join = $distinct = '';