obsidian-tasks
obsidian-tasks copied to clipboard
Edit Task modal: creating a task with both Cancelled and Done is possible
Please check that this issue hasn't been reported before.
- [X] I searched previous Bug Reports didn't find any similar reports.
Expected Behavior
The Modal should not let create a task with both Cancelled and Done dates set - the Apply button should not be accessible
Current behaviour
The Apply button is normal and a task with Cancelled and Done date is created
Steps to reproduce
- Create a task (
- [ ] blabla
) - Set cursor on the task
- Open Edit task modal
- Input valid dates in Done and Cancelled fields
- Click Apply
Which Operating Systems are you using?
- [ ] Android
- [ ] iPhone/iPad
- [ ] Linux
- [X] macOS
- [ ] Windows
Obsidian Version
1.6.7
Tasks Plugin Version
7.6.0
Checks
- [ ] I have tried it with all other plugins disabled and the error still occurs
Possible solution
Make the Modal disable the Apply button when both Done and Cancelled date are present.
I have a compact one-line fix for this but, is it testable only manually due to the architecture of our modal. An improvement on that matter can be made, but that is another topic.