mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +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'])
|
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 = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user