feat(caldav): Sync Reminders / VALARM #1415

Merged
konrad merged 30 commits from ce72/api:1408_caldav_alarms into main 2023-04-01 11:09:13 +00:00
Showing only changes of commit 6abd212c57 - Show all commits

View File

@ -411,13 +411,13 @@ func persistLabels(s *xorm.Session, a web.Auth, task *models.Task, labels []*mod
return err
}
labelMap := make(map[int64]*models.Label)
labelMap := make(map[string]*models.Label)
for _, l := range existingLabels {
labelMap[l.ID] = &l.Label
labelMap[l.Title] = &l.Label
}
for _, label := range labels {
if l, has := labelMap[label.ID]; has {
if l, has := labelMap[label.Title]; has {
*label = *l
continue
}