Fixed priority not updating when set to 0
This commit is contained in:
parent
55e33c1694
commit
93dbaea303
3 changed files with 10 additions and 11 deletions
|
|
@ -133,6 +133,11 @@ func (t *ListTask) Update() (err error) {
|
|||
ot.Done = false
|
||||
}
|
||||
|
||||
// If the priority is 0, we also need to explicitly check that here
|
||||
if t.Priority == 0 {
|
||||
ot.Priority = 0
|
||||
}
|
||||
|
||||
_, err = x.ID(t.ID).
|
||||
Cols("text",
|
||||
"description",
|
||||
|
|
|
|||
Reference in a new issue