From 87a7097c9b0761a04a09d9a7422fc8d382d90f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 6 Nov 2020 13:20:52 +0100 Subject: [PATCH] Notify about due dates after due date change (fixes #2239) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Db/CardMapper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Db/CardMapper.php b/lib/Db/CardMapper.php index cb367c359..c8d8f4d2a 100644 --- a/lib/Db/CardMapper.php +++ b/lib/Db/CardMapper.php @@ -81,7 +81,8 @@ public function update(Entity $entity, $updateModified = true): Entity { } // make sure we only reset the notification flag if the duedate changes - if (in_array('duedate', $entity->getUpdatedFields(), true)) { + $updatedFields = $entity->getUpdatedFields(); + if (isset($updatedFields['duedate']) && $updatedFields['duedate']) { try { /** @var Card $existing */ $existing = $this->find($entity->getId());