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:
@ -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)
|
||||
|
Reference in New Issue
Block a user