Skip to content

Commit

Permalink
Also set check date if the generic check date has been set (fixes #5729)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Aug 15, 2024
1 parent b2d2a38 commit 8d488a0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ fun Tags.updateWithCheckDate(key: String, value: String) {
set(key, value)
/* if the value is changed, set the check date only if it has been set before. Behavior
* before v32.0 was to delete the check date. However, this destroys data that was
* previously collected by another surveyor - we don't want to destroy other people's data
* previously collected by another surveyor - we don't want to destroy other people's data.
* Also, to avoid ambiguities, we should also update (existence) check date.
*/
if (previousValue == value || hasCheckDateForKey(key)) {
if (previousValue == value || hasCheckDateForKey(key) || hasCheckDate()) {
updateCheckDateForKey(key)
}
}
Expand Down

0 comments on commit 8d488a0

Please sign in to comment.