From 778404fb29b0187749cd6654e2c7cdaddb91a7f1 Mon Sep 17 00:00:00 2001 From: Jakob Sack Date: Tue, 23 Aug 2011 22:07:40 +0200 Subject: [PATCH] VTODO and VJOURNAL exist as well --- apps/calendar/lib/calendar.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/apps/calendar/lib/calendar.php b/apps/calendar/lib/calendar.php index 5e93d784a8..88fc1cde77 100644 --- a/apps/calendar/lib/calendar.php +++ b/apps/calendar/lib/calendar.php @@ -279,6 +279,22 @@ class OC_Calendar_Calendar{ $use = $property; } } + elseif($property->name == 'VTODO' || $property->name == 'VJOURNAL'){ + $return[0] = $use->name; + foreach($property->children as &$element){ + if($property->name == 'SUMMARY'){ + $return[3] = $property->value; + } + elseif($property->name == 'UID'){ + $return[5] = $property->value; + } + }; + + // Only one VTODO or VJOURNAL per object + // (only one UID per object but a UID is required by a VTODO => + // one VTODO per object) + break; + } } unset($property); // find the data