1
0

fix(project): duplicating a project should not create two backlog buckets

Resolves https://community.vikunja.io/t/when-duplicating-a-project-the-resulting-project-has-an-extra-bucket/1524
This commit is contained in:
kolaente
2023-08-23 16:19:42 +02:00
parent acb03c430e
commit 5e8084c194
4 changed files with 24 additions and 11 deletions

View File

@ -51,6 +51,9 @@ func TestProject_CreateOrUpdate(t *testing.T) {
"description": project.Description,
"parent_project_id": 0,
}, false)
db.AssertExists(t, "buckets", map[string]interface{}{
"project_id": project.ID,
}, false)
})
t.Run("nonexistant parent project", func(t *testing.T) {
db.LoadAndAssertFixtures(t)