mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 16:59:36 +01:00
fix Error: Call to undefined method calendar_bo::find_or_add_categories() when specifying categories
This commit is contained in:
parent
d071757bb9
commit
d3b644ebec
@ -380,7 +380,7 @@ class JsCalendar
|
|||||||
$cat_ids = [];
|
$cat_ids = [];
|
||||||
if ($categories)
|
if ($categories)
|
||||||
{
|
{
|
||||||
if (!isset($bo)) $bo = new \calendar_bo();
|
if (!isset($bo)) $bo = new \calendar_boupdate();
|
||||||
$cat_ids = $bo->find_or_add_categories(array_keys($categories));
|
$cat_ids = $bo->find_or_add_categories(array_keys($categories));
|
||||||
}
|
}
|
||||||
return $cat_ids ? implode(',', $cat_ids) : null;
|
return $cat_ids ? implode(',', $cat_ids) : null;
|
||||||
|
Loading…
Reference in New Issue
Block a user