From 4c520079964b8b3ecacb9ff6e74d60ac07f130fe Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 13 Apr 2012 18:36:20 +0200 Subject: Calendar: Update category list when updating/adding event --- apps/calendar/lib/app.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'apps/calendar/lib/app.php') diff --git a/apps/calendar/lib/app.php b/apps/calendar/lib/app.php index 5e803ebf7bf..22c1133e006 100644 --- a/apps/calendar/lib/app.php +++ b/apps/calendar/lib/app.php @@ -116,6 +116,14 @@ class OC_Calendar_App{ } } + /** + * check VEvent for new categories. + * @see OC_VCategories::loadFromVObject + */ + public static function loadCategoriesFromVCalendar(OC_VObject $calendar) { + self::getVCategories()->loadFromVObject($calendar->VEVENT, true); + } + public static function getRepeatOptions(){ return OC_Calendar_Object::getRepeatOptions(self::$l10n); } -- cgit v1.2.3