GemsTracker / gemstracker-library

GEneric Medical Survey Tracker, main library
http://gemstracker.org
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Reset sent mail - using checkbox in Token edit screen #674

Closed mddejong closed 3 years ago

mddejong commented 3 years ago

The token edit screen now always resets the mail sent date, without resetting the number of mail sent.

This is incorrect behaviour: either both should be reset, or none at all. The solution is to make this a checkbox option, default action: no changes.

mddejong commented 3 years ago

While we are at it: changing the valid from date should automatically reset the mail sent date as will if the new from date is later than the sent date. There was a bug in here where the sent date might be interpreted as an US date.