fix: Make sure labels are always exported as caldav #1412
No reviewers
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1412
Loading…
Reference in New Issue
No description provided.
Delete Branch "ce72/api:1272_export_labels_single_resource"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Labels were not added to tasks for caldav requests like /dav/lists/{listId}/{taskId}
@ -211,3 +211,3 @@
// save and override the updated unix date to not break any later etag checks
updated := vcls.task.Updated
task, err := models.GetTaskSimple(s, &models.Task{ID: vcls.task.ID, UID: vcls.task.UID})
task, err := models.GetTask(s, &models.Task{ID: vcls.task.ID, UID: vcls.task.UID}, vcls.user)
Please use the
ReadOne
method of theTask
model.Okay, I understand. Please check again.
Thanks!
Actually I was not quite sure, if it was valid to extend ReadOne in tasks.go to accept arbitrary criteria. I needed it just to find by UUId, so everything seems fine (=unique). But now it's possible that ReadOne can be used and find multiple matching tasks.
That's why I initially thought it might be better to have a separate method and let ReadOne only query by id.