diff options
Diffstat (limited to 'services/mailer/mail.go')
-rw-r--r-- | services/mailer/mail.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/mailer/mail.go b/services/mailer/mail.go index 979f8aa227..721f6eb49b 100644 --- a/services/mailer/mail.go +++ b/services/mailer/mail.go @@ -372,6 +372,12 @@ func SendIssueAssignedMail(issue *models.Issue, doer *models.User, content strin // No mail service configured return nil } + + if err := issue.LoadRepo(); err != nil { + log.Error("Unable to load repo [%d] for issue #%d [%d]. Error: %v", issue.RepoID, issue.Index, issue.ID, err) + return err + } + langMap := make(map[string][]*models.User) for _, user := range recipients { langMap[user.Language] = append(langMap[user.Language], user) |