Fixed un-setting a task as done not working

This commit is contained in:
kolaente 2018-09-10 19:38:35 +02:00
parent 431564d63c
commit 31a850c28e
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@ func (i *ListTask) Update() (err error) {
return err
}
// And because a false is considered to be a null value, we need to explicitly check that case here.
if i.Done == false {
ot.Done = false
}
_, err = x.ID(i.ID).Cols("text", "description", "done", "due_date_unix", "reminder_unix").Update(ot)
*i = ot
return