Notify about due dates after due date change (fixes #2239)

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-11-06 13:20:52 +01:00
parent 6b4d4d9ffc
commit 87a7097c9b

View File

@@ -81,7 +81,8 @@ class CardMapper extends QBMapper implements IPermissionMapper {
}
// 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());