Fix: CardDAV sync broke when todo items didn't have a creation date. Also fixed todos without a due date not being displays and wrong calculation of warning badge states.
This commit is contained in:
@@ -163,8 +163,8 @@ public function getTodos()
|
||||
if (isset($vcalendar->VTODO->PRIORITY)) $todo->priority = $vcalendar->VTODO->PRIORITY->getValue();
|
||||
if (isset($vcalendar->VTODO->STATUS)) $todo->status = $vcalendar->VTODO->STATUS->getValue();
|
||||
if (isset($vcalendar->VTODO->{'RELATED-TO'})) $todo->parent = $vcalendar->VTODO->{'RELATED-TO'}->getValue();
|
||||
$todo->created_at = $vcalendar->VTODO->CREATED->getDateTime();
|
||||
$todo->last_modified = $vcalendar->VTODO->{'LAST-MODIFIED'}->getDateTime();
|
||||
$todo->created_at = $vcalendar->VTODO->CREATED?->getDateTime();
|
||||
$todo->last_modified = $vcalendar->VTODO->{'LAST-MODIFIED'}?->getDateTime();
|
||||
|
||||
$todos[] = $todo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user