1
0

fix: look for the default bucket based on the position instead of the index

This commit is contained in:
kolaente
2022-11-03 15:10:20 +01:00
parent c495096444
commit 622f2f0562
3 changed files with 14 additions and 14 deletions

View File

@ -81,7 +81,7 @@ func getDefaultBucket(s *xorm.Session, listID int64) (bucket *Bucket, err error)
bucket = &Bucket{}
_, err = s.
Where("list_id = ?", listID).
OrderBy("id asc").
OrderBy("position asc").
Get(bucket)
return
}