mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Include main category even if no sub-cats are selected
This commit is contained in:
parent
83f3aaa5f3
commit
96dd9d46c2
@ -238,6 +238,8 @@ abstract class bo_merge
|
|||||||
$path = explode(' / ', $path);
|
$path = explode(' / ', $path);
|
||||||
unset($path[0]); // Drop main
|
unset($path[0]); // Drop main
|
||||||
$cats[$GLOBALS['egw']->categories->id2name($cat_id,'main')][] = implode(' / ', $path);
|
$cats[$GLOBALS['egw']->categories->id2name($cat_id,'main')][] = implode(' / ', $path);
|
||||||
|
} elseif($cat_id) {
|
||||||
|
$cats[$cat_id] = array();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach($cats as $main => $cat) {
|
foreach($cats as $main => $cat) {
|
||||||
|
Loading…
Reference in New Issue
Block a user