1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-03 01:45:47 +00:00
This commit is contained in:
Alexey Makhov 2015-11-13 00:16:51 +03:00
parent 1bfebdcdf6
commit 3e7695ae91

View File

@ -139,7 +139,11 @@ func (a Action) GetIssueInfos() []string {
func (a Action) GetIssueTitle() string {
issueID := com.StrTo(a.GetIssueInfos()[0]).MustInt64()
issue, _ := GetIssueByID(issueID)
issue, err := GetIssueByID(issueID)
if err != nil {
log.Error(4, "GetIssueByID: %v", err)
return "500 when get title"
}
return issue.Name
}