diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-04-13 18:36:20 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-04-13 21:13:58 +0200 |
commit | 4c520079964b8b3ecacb9ff6e74d60ac07f130fe (patch) | |
tree | 0083c9f29f434391398be48c4ad9872a3adc7151 /apps/calendar/lib/app.php | |
parent | 471e735b0c26a4f845e8341a98fdc04067ee4cfa (diff) | |
download | nextcloud-server-4c520079964b8b3ecacb9ff6e74d60ac07f130fe.tar.gz nextcloud-server-4c520079964b8b3ecacb9ff6e74d60ac07f130fe.zip |
Calendar: Update category list when updating/adding event
Diffstat (limited to 'apps/calendar/lib/app.php')
-rw-r--r-- | apps/calendar/lib/app.php | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |