mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
Don't set category title if category has no description
This commit is contained in:
parent
aa07a243c1
commit
79a6e9f2d3
@ -143,7 +143,8 @@ class etemplate_widget_menupopup extends etemplate_widget
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Make sure s, etc. are properly encoded when sent, and not double-encoded
|
// Make sure s, etc. are properly encoded when sent, and not double-encoded
|
||||||
foreach(self::$request->sel_options[$form_name] as &$label)
|
$options = (self::$request->sel_options[$form_name] ? $form_name : $this->id);
|
||||||
|
foreach(self::$request->sel_options[$options] as &$label)
|
||||||
{
|
{
|
||||||
if(!is_array($label))
|
if(!is_array($label))
|
||||||
{
|
{
|
||||||
@ -300,7 +301,7 @@ class etemplate_widget_menupopup extends etemplate_widget
|
|||||||
}
|
}
|
||||||
$options[$cat['id']] = array(
|
$options[$cat['id']] = array(
|
||||||
'label' => $s,
|
'label' => $s,
|
||||||
'title' => empty($cat['description']) ? $s : $cat['description'],
|
'title' => $cat['description'],
|
||||||
);
|
);
|
||||||
// Send data too
|
// Send data too
|
||||||
if(is_array($cat['data']))
|
if(is_array($cat['data']))
|
||||||
|
Loading…
Reference in New Issue
Block a user