fix(migration): ensure project background gets exported and imported
(cherry picked from commit ebfd5f54d2e4644aa2076c57a9b50ed5b87deaa9)
This commit is contained in:
@ -147,6 +147,11 @@ func exportProjectsAndTasks(s *xorm.Session, u *user.User, wr *zip.Writer) (task
|
||||
projectsMap := make(map[int64]*ProjectWithTasksAndBuckets, len(rawProjects))
|
||||
projectIDs := []int64{}
|
||||
for _, p := range rawProjects {
|
||||
if p.BackgroundFileID > 0 {
|
||||
p.BackgroundInformation = &files.File{
|
||||
ID: p.BackgroundFileID,
|
||||
}
|
||||
}
|
||||
pp := &ProjectWithTasksAndBuckets{
|
||||
Project: *p,
|
||||
}
|
||||
|
Reference in New Issue
Block a user