Skip to content

Commit

Permalink
Notify about due dates after due date change (fixes #2239)
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Nov 6, 2020
1 parent 6b4d4d9 commit 87a7097
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Db/CardMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 87a7097

Please sign in to comment.