Avoid always setting the current time on card updates

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2022-10-19 20:03:22 +02:00
parent 816a8c08f0
commit d00bd159d2

View File

@@ -337,7 +337,7 @@ class CardService {
$card->setType($type); $card->setType($type);
$card->setOrder($order); $card->setOrder($order);
$card->setOwner($owner); $card->setOwner($owner);
$card->setDuedate(new \DateTime($duedate)); $card->setDuedate($duedate ? new \DateTime($duedate) : null);
$resetDuedateNotification = false; $resetDuedateNotification = false;
if ( if (
$card->getDuedate() === null || $card->getDuedate() === null ||