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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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