diff --git a/apps/calendar/lib/calendar.php b/apps/calendar/lib/calendar.php index 5e93d784a89c9723ec4fc43b3aa1798ec1601cef..88fc1cde770fda3a803aad53587e594126f51c41 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