summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Makhov <amakhov@avito.ru>2015-11-13 09:21:22 +0300
committerAlexey Makhov <amakhov@avito.ru>2015-11-13 09:21:22 +0300
commitee645af10766496b164bd87d1bd748e340ff100b (patch)
tree07c66f2bdf04fb305f6aca115b1dedb5ac1befb5
parent3e7695ae91ad6007511fffd88de9ffbeacdd6a59 (diff)
downloadgitea-ee645af10766496b164bd87d1bd748e340ff100b.tar.gz
gitea-ee645af10766496b164bd87d1bd748e340ff100b.zip
#1854 change issueId to issueIndex
-rw-r--r--models/action.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go
index 4a376f89d4..19fd9102fb 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"