1
0

fix: don't allow setting a list namespace to 0

See https://github.com/go-vikunja/app/issues/13
This commit is contained in:
kolaente
2022-10-01 15:02:13 +02:00
parent 374a0f9ce3
commit 96ed1e33e3
7 changed files with 59 additions and 22 deletions

View File

@ -140,8 +140,9 @@ func TestList_CreateOrUpdate(t *testing.T) {
db.LoadAndAssertFixtures(t)
s := db.NewSession()
list := List{
ID: 99999999,
Title: "test",
ID: 99999999,
Title: "test",
NamespaceID: 1,
}
err := list.Update(s, usr)
assert.Error(t, err)