Fix sub-categories not included when exporting search results

This commit is contained in:
Nathan Gray 2015-09-02 14:56:06 +00:00
parent 559d0ee15c
commit 0b89f4040b

View File

@ -798,8 +798,8 @@ class infolog_so
if ((int)$query['cat_id']) if ((int)$query['cat_id'])
{ {
//$filtermethod .= ' AND info_cat='.intval($query['cat_id']).' '; $categories = new categories('','infolog');
$cats = $GLOBALS['egw']->categories->return_all_children((int)$query['cat_id']); $cats = $categories->return_all_children((int)$query['cat_id']);
$filtermethod .= ' AND info_cat'.(count($cats)>1? ' IN ('.implode(',',$cats).') ' : '='.(int)$query['cat_id']); $filtermethod .= ' AND info_cat'.(count($cats)>1? ' IN ('.implode(',',$cats).') ' : '='.(int)$query['cat_id']);
} }
$join = $distinct = ''; $join = $distinct = '';