Fix due status calculation

Signed-off-by: Raul <raul@nextcloud.com>
This commit is contained in:
Raul
2022-05-09 14:44:36 +02:00
committed by Julius Härtl
parent 99f5e8b76e
commit 7575bd0bf7
4 changed files with 17 additions and 16 deletions

View File

@@ -108,7 +108,7 @@ class OverviewService {
$diffDays = $card->getDaysUntilDue();
$key = 'later';
if ($card->getDuedate() === null) {
if ($diffDays === null) {
$key = 'nodue';
} elseif ($diffDays < 0) {
$key = 'overdue';