From ee645af10766496b164bd87d1bd748e340ff100b Mon Sep 17 00:00:00 2001 From: Alexey Makhov Date: Fri, 13 Nov 2015 09:21:22 +0300 Subject: [PATCH] #1854 change issueId to issueIndex --- models/action.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/action.go b/models/action.go index 4a376f89d4c2..19fd9102fbd0 100644 --- a/models/action.go +++ b/models/action.go @@ -138,8 +138,8 @@ func (a Action) GetIssueInfos() []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 { log.Error(4, "GetIssueByID: %v", err) return "500 when get title"