mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fix for invalid category ids, eg. delete categories
This commit is contained in:
parent
2cfa5530c3
commit
a5ff2eb037
@ -1468,9 +1468,9 @@ class addressbook_bo extends addressbook_so
|
||||
$cat_list = array();
|
||||
foreach($cat_id_list as $cat_id)
|
||||
{
|
||||
if ($cat_data = $this->categories->return_single($cat_id))
|
||||
if ($cat_id && ($cat_name = $this->categories->id2name($cat_id)) && $cat_name != '--')
|
||||
{
|
||||
$cat_list[] = $cat_data[0]['name'];
|
||||
$cat_list[] = $cat_name;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -231,9 +231,8 @@ class addressbook_vcal extends addressbook_bo
|
||||
break;
|
||||
|
||||
case 'cat_id':
|
||||
if (!empty($value))
|
||||
if (!empty($value) && ($values = $this->get_categories($value)))
|
||||
{
|
||||
$values = &$this->get_categories($value);
|
||||
$values = (array) $GLOBALS['egw']->translation->convert($values, $sysCharSet, $_charset);
|
||||
$value = implode(',', $values); // just for the CHARSET recognition
|
||||
if(($extra_charset_attribute || $this->productName == 'kde')
|
||||
|
Loading…
Reference in New Issue
Block a user