mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Fix hierarchical category action
This commit is contained in:
parent
d61ccc9bc4
commit
30bef48900
@ -760,7 +760,7 @@ class nextmatch_widget
|
||||
// if more then max_length cats, switch automatically to hierarchical display
|
||||
if (count($cats) > $max_cats_flat)
|
||||
{
|
||||
$cat_actions = self::category_hierarchy($cats, $parent_id);
|
||||
$cat_actions = self::category_hierarchy($cats, $prefix, $parent_id);
|
||||
}
|
||||
else // flat, indented categories
|
||||
{
|
||||
@ -812,6 +812,7 @@ class nextmatch_widget
|
||||
$cat_actions[$cat['id']] = array(
|
||||
'caption' => $name,
|
||||
'no_lang' => true,
|
||||
'prefix' => $prefix,
|
||||
);
|
||||
// add category icon
|
||||
if ($cat['data']['icon'] && file_exists(EGW_SERVER_ROOT.'/phpgwapi/images/'.basename($cat['data']['icon'])))
|
||||
|
Loading…
Reference in New Issue
Block a user