1
0

fix(tasks): return a correct task identifier if the list does not have a good one set

This commit is contained in:
kolaente
2023-06-07 18:17:08 +02:00
parent 1a840c8b87
commit 69bd023b62
2 changed files with 5 additions and 2 deletions

View File

@ -136,8 +136,8 @@ type TaskDeletedNotification struct {
// ToMail returns the mail notification for TaskDeletedNotification
func (n *TaskDeletedNotification) ToMail() *notifications.Mail {
return notifications.NewMail().
Subject(n.Task.Title + "(" + n.Task.GetFullIdentifier() + ")" + " has been deleted").
Line(n.Doer.GetName() + " has deleted the task " + n.Task.Title + "(" + n.Task.GetFullIdentifier() + ")")
Subject(n.Task.Title + " (" + n.Task.GetFullIdentifier() + ")" + " has been deleted").
Line(n.Doer.GetName() + " has deleted the task " + n.Task.Title + " (" + n.Task.GetFullIdentifier() + ")")
}
// ToDB returns the TaskDeletedNotification notification in a format which can be saved in the db