mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-11 04:30:06 +02:00
#1854 change issueId to issueIndex
This commit is contained in:
parent
3e7695ae91
commit
ee645af107
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue