mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +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
|
||||
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))
|
||||
{
|
||||
@ -300,7 +301,7 @@ class etemplate_widget_menupopup extends etemplate_widget
|
||||
}
|
||||
$options[$cat['id']] = array(
|
||||
'label' => $s,
|
||||
'title' => empty($cat['description']) ? $s : $cat['description'],
|
||||
'title' => $cat['description'],
|
||||
);
|
||||
// Send data too
|
||||
if(is_array($cat['data']))
|
||||
|
Loading…
Reference in New Issue
Block a user