obsidian-tasks
obsidian-tasks copied to clipboard
Toggling a task with done date overwrites the done date when toggling task via clicking on the checkbox
Please check that this issue hasn't been reported before.
- [X] I searched previous Bug Reports didn't find any similar reports.
Steps to reproduce
- let's assume that today is 2024 Oct 20th.
- set global filter to
#task
- add the following task line:
- [ ] #task with done date in the past, but not completed yet ✅ 1970-01-01
- in reading mode or in dynamic mode click on the task's checkbox to complete it
Expected Behavior
- the task will be completed keeping the done date that was in the line before completion
Current behaviour
- the done date is overwritten with today's date
Which Operating Systems are you using?
- [ ] Android
- [ ] iPhone/iPad
- [X] Linux
- [ ] macOS
- [ ] Windows
Obsidian Version
1.7.4
Tasks Plugin Version
7.11.1+ (d732bbb0)
Checks
- [ ] I have tried it with all other plugins disabled and the error still occurs
Possible solution
This happens in case when in the edit task modal I input the done date to a date previous that today and forget to change the status to done.