Browse Source

#1854 change issueId to issueIndex

for-closed-social
Alexey Makhov 9 years ago
parent
commit
ee645af107
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      models/action.go

+ 2
- 2
models/action.go View File

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

Loading…
Cancel
Save