Set the end date to the same as the due date if a start date was set but no end date
This commit is contained in:
parent
64cbfc113a
commit
2223072881
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue