fix: Properly get done state for dav

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-11-14 10:57:22 +01:00
parent cdba29d6fa
commit 110ee28447

View File

@@ -150,7 +150,7 @@ class Card extends RelationalEntity {
$date = new DateTime();
$date->setTimestamp($this->getLastModified());
$event->STATUS = 'COMPLETED';
$event->COMPLETED = $this->getDone() ? $this->$this->getDone() : $this->getArchived();
$event->COMPLETED = $this->getDone() ? $this->getDone() : $this->getArchived();
} else {
$event->STATUS = 'NEEDS-ACTION';
}