From 9acba7d3f00826178e406b911bc787c5ae533322 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 17 Jul 2020 14:16:59 +0200 Subject: [PATCH] Fix duplicating a list with background --- pkg/models/list_duplicate.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/models/list_duplicate.go b/pkg/models/list_duplicate.go index 163254c2..fbb21760 100644 --- a/pkg/models/list_duplicate.go +++ b/pkg/models/list_duplicate.go @@ -278,8 +278,7 @@ func (ld *ListDuplicate) Create(a web.Auth) (err error) { } } - ld.List.BackgroundFileID = file.ID - if err := CreateOrUpdateList(ld.List); err != nil { + if err := SetListBackground(ld.List.ID, file); err != nil { return err }