tokarchuk/v1.17
Alexey Makhov 9 years ago
parent 1bfebdcdf6
commit 3e7695ae91
  1. 6
      models/action.go

@ -139,7 +139,11 @@ func (a Action) GetIssueInfos() []string {
func (a Action) GetIssueTitle() string { func (a Action) GetIssueTitle() string {
issueID := com.StrTo(a.GetIssueInfos()[0]).MustInt64() 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 return issue.Name
} }

Loading…
Cancel
Save