Set the end date to the same as the due date if a start date was set but no end date
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-02-09 14:52:45 +01:00
parent 64cbfc113a
commit 2223072881
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 0 deletions

View File

@ -398,6 +398,13 @@
}
},
saveTask() {
// If no end date is being set, but a start date and due date,
// use the due date as the end date
if (this.task.endDate === null && this.task.startDate !== null && this.task.dueDate !== null) {
this.task.endDate = this.task.dueDate
}
this.taskService.update(this.task)
.then(r => {
this.$set(this, 'task', r)