mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02: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 more then max_length cats, switch automatically to hierarchical display
|
||||||
if (count($cats) > $max_cats_flat)
|
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
|
else // flat, indented categories
|
||||||
{
|
{
|
||||||
@ -812,6 +812,7 @@ class nextmatch_widget
|
|||||||
$cat_actions[$cat['id']] = array(
|
$cat_actions[$cat['id']] = array(
|
||||||
'caption' => $name,
|
'caption' => $name,
|
||||||
'no_lang' => true,
|
'no_lang' => true,
|
||||||
|
'prefix' => $prefix,
|
||||||
);
|
);
|
||||||
// add category icon
|
// add category icon
|
||||||
if ($cat['data']['icon'] && file_exists(EGW_SERVER_ROOT.'/phpgwapi/images/'.basename($cat['data']['icon'])))
|
if ($cat['data']['icon'] && file_exists(EGW_SERVER_ROOT.'/phpgwapi/images/'.basename($cat['data']['icon'])))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user