mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 13:03:16 +01:00
Fix sub-categories not included when exporting search results
This commit is contained in:
parent
1b20e4aa7c
commit
43459e53a5
@ -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 = '';
|
||||
|
Loading…
Reference in New Issue
Block a user