mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Fix sub-categories not included when exporting search results
This commit is contained in:
parent
559d0ee15c
commit
0b89f4040b
@ -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