Fixed un-setting a task as done not working
This commit is contained in:
parent
431564d63c
commit
31a850c28e
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ func (i *ListTask) Update() (err error) {
|
||||||
return err
|
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)
|
_, err = x.ID(i.ID).Cols("text", "description", "done", "due_date_unix", "reminder_unix").Update(ot)
|
||||||
*i = ot
|
*i = ot
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue